Webdriver protocol. Locator strategies

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