You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An element is in view if it is a member of its own pointer-interactable paint tree, given the pretense that its pointer events are not disabled.
This discusses where an element is visible in any way, however there are many situations where an element is not meaningfully visible. For example where between only 0-1px of the element is visible. In this situation, the pointer-interactable tree produces a DOMRect with a width or height of less than 1px and therefore the element is considered to be in view, and will not be scrolledIntoView at step 5 of the elementClick. Whilst drivers should be able to click, this is much more likely to lead to obscure bugs ([1], [2], [3] for example), and is not representative of how a real user would interact with the browser.
I would suggest that this consider whether an element is meaningfully visible - perhaps by requiring that at least 1px of it be visible for example.
In chapter 12. Elements, section 12.1 Interactability:
This discusses where an element is visible in any way, however there are many situations where an element is not meaningfully visible. For example where between only 0-1px of the element is visible. In this situation, the pointer-interactable tree produces a DOMRect with a width or height of less than 1px and therefore the element is considered to be in view, and will not be scrolledIntoView at step 5 of the elementClick. Whilst drivers should be able to click, this is much more likely to lead to obscure bugs ([1], [2], [3] for example), and is not representative of how a real user would interact with the browser.
I would suggest that this consider whether an element is meaningfully visible - perhaps by requiring that at least 1px of it be visible for example.
[1] https://bugs.chromium.org/p/chromedriver/issues/detail?id=3682
[2] https://bugs.chromium.org/p/chromedriver/issues/detail?id=3878
[3] https://bugs.chromium.org/p/chromedriver/issues/detail?id=3933
The text was updated successfully, but these errors were encountered: