W3C home > Mailing lists > Public > public-browser-tools-testing@w3.org > July to September 2016

Webdriver protocol. Locator strategies

From: Miguel <aplicacionamedida@gmail.com>
Date: Mon, 04 Jul 2016 11:45:44 +0200
Message-ID: <577A3048.1030106@gmail.com>
To: public-browser-tools-testing@w3.org
Location strategies by ID and by name are not present in the 
specification of the new webdriver protocol:
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-json-serialisation-of-an-element

But all the other drivers support them. They were present in the old 
specification:
https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelement

These locator strategies can be replicated but maybe for performance 
reasons, shouldn't be eliminated, because they can use 
document.getElementById and document.getElementsByName internally. Maybe 
these functions offer a better performance than document.querySelector 
or document.querySelectorAll.

At the same time, eliminating these locator strategies can break code of 
other users

Best regards,
Miguel.
Received on Monday, 4 July 2016 14:17:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:09:54 UTC