Y
Hacker News
new
|
ask
|
show
|
jobs
by
anoncake
2668 days ago
Does it? I don't think you can reliably identify whether something is visible if the other site, which controls the CSS, does not want you to. It's a classical arms race situation.
2 comments
plausibilities
2668 days ago
https://webdriver.io/docs/api/element/isDisplayed.html
link
anoncake
2668 days ago
<span style="opacity: 0.001">Trap!</span>
link
thecatspaw
2668 days ago
Selenium can reliably do that, as it is a proper webbrowser controlled through an API
link
anoncake
2668 days ago
Yes, but it is not a human eye and brain.
link