-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]queryByText(id).click() is not working in iphone while its working fine in chromium #18706
Comments
nov10.zip |
There is another element at the position where you try to click which intercepts the click events. Look at the DOM tree of the page which run in the browser with iphone emulation it should be clear which element is that. In the log from the screenshot the element you try to click was detached from the DOM so it's not actionable. The error message is pretty clear about it. If you think there is a bug in playwright we need a minimal reproducible example which we could run locally. Can you share one? |
Is there any way we can chat or communicate live? |
Dont think its appropriate to say that way.... |
|
We need a reproducible example that we could run locally to make this report actionable. Please file a new issue with a repro when you have one and link it to this one. |
Context:
await this.screen.queryByText(id).click();
When run locally this is working fine when i ran locally both in Chromium and webkit.
but failing for iphone12/webkit when its ran inside docker container. Below is a snapshhot of the error.
I have an attachment zip file with recording and screenshot.
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
await this.screen.queryByText(id).click();
Describe the bug
I am working on a reactJs UI where in a drop down has a selection - and click on it by text. which is working fine in chromium
but failing in iPhone/Webkit.
Below is a snippet of the error. Its able to identify the year 2027 but failing to click on it.
error scenario here
proxy.click: Target closed
=========================== logs ===========================
waiting for selector "query-by-text=["2027"]"
selector resolved to visible <div tabindex="-1" aria-disabled="false" id="react-se…>2027
attempting click action
waiting for element to be visible, enabled and stable
element is visible, enabled and stable
scrolling into view if needed
done scrolling
The text was updated successfully, but these errors were encountered: