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
[Feature] page.click() scroll to be optional #11716
Comments
@godjira-homless If the element is outside of the viewport, than we can't click it with mouse; same way as users won't be able to. await page.locator('button').dispatchEvent('click'); |
I can move the slider to the appropriate position, the element in the viewport, visible, all condition ok. I tried different selectors, same result. |
There is no way to disable scroll step as a human would also have to scroll the element into view to be able to click it. It might be that there is a bug in the app and how it reacts to scrolling. It may be that the element is not yet stable when playwright is clicking it, there were some fixes in 1.18 related to that. What version are you using? If you are not on 1.18 can you please try it and see if the problem persists? If the problem is still there can you share a trace with us? |
We need more information to act on this report. Please file a new one and link to this issue when you get back to it! |
I have several problems in jqxgrid with page.click(). Click 2 rows upper than the element located (hover too), etc (jqx bug). I think the problem cause the Scroll the element into view if needed in click().
It could be nice to if scroll would be optional.
workaround: mouse.click() to bounding box, but I'd rather use the page.click()
thx
The text was updated successfully, but these errors were encountered: