w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
678 stars 193 forks source link

Element Displayedness #1285

Open Danp2 opened 6 years ago

Danp2 commented 6 years ago

In chapter C. Element Displayedness:

This function is typically exposed to GET requests with a URI Template of /session/{session id}/element/{element id}/displayed.

Suggest that this information also be listed under 13. Element State

andreastt commented 6 years ago

It’s in the appendix because it relies on features that are not part of the web platform. I think it would be confusing to mix references to Selenium atoms in the definitions related to element state.

foolip commented 5 years ago

Some history on this issue I found: https://github.com/w3c/webdriver/issues/660 (via https://github.com/w3c/webdriver/commit/4a1c3500b4872a2ecdb2a281446924c064e82ec7) https://www.w3.org/2015/10/25-webdriver-minutes.html#action09 (via https://github.com/w3c/webdriver/commit/de7ca16463e558487562f699f8dff380ce5cb234)

Does any WebDriver implementation currently support the /displayed endpoint? https://w3c.github.io/webdriver/#element-displayedness isn't marked as non-normative, but there aren't any tests for it.

Danp2 commented 5 years ago

Does any WebDriver implementation currently support the /displayed endpoint?

Yes, both Chromedriver and Geckodriver support this implementation. Haven't tested any others.

foolip commented 5 years ago

Ah, I tried to find it in chromedriver and failed before, but here it is: https://cs.chromium.org/chromium/src/chrome/test/chromedriver/server/http_handler.cc?l=331&rcl=5540a9cb7ec95a28dcfb97f9ce92520799a71647