-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
What happened?
The condition to evaluate the "clickability" of an element considers whether the element is Displayed, which does not regard elements with an opacity of 0 as Displayed.
The proposal in the closed 14030 was to make Displayed disregard the opacity. I understand the arguments on both sides. However at the end of the day, the actual problem is still not resolved - waiting for "clickability", as it is now, is unreliable. The original post was about React, I just encounter the issue in an Angular app. Clickjacking or not, it seems the technique is apparently being used. I can't judge whether this is a right or a wrong way of doing things, but so should not Selenium.
All this aside - the bottom line is - opacity does not play a role in "clickability".
If Displayed is to stay as it is, then how can we properly ascertain "clickability"?
I'm not the best at reading minified javascripts, but it seems is-displayed.js "atom" is already wired to take an optional parameter for ignoring opacity. Perhaps expose a way to use that?
How can we reproduce the issue?
Have an element with opacity 0 and try to wait for it to become clickable.Relevant log output
N/AOperating System
N/A
Selenium version
N/A
What are the browser(s) and version(s) where you see this issue?
Chrome
What are the browser driver(s) and version(s) where you see this issue?
130.x.x.x
Are you using Selenium Grid?
No