I have seen that theJSON Wire Protocol
is obsolete and the Webdriver Wire Protocol
is the new implementation.
I want to understand what changes to implement in the Webdriver Wire Protocol
and how it is different from the JSON Wire Protocol
?
Here are the naming conventions that have changed:
JSON Wire Protocol WebDriver Wire Protocol version browserVersion platform platformName noProxy noproxy UnknownCommand unknown command NoSuchFrame no such frame NoSuchElement no such element StaleElementReference stale element reference ElementIsNotSelectable element not selectable JavaScriptError javascript error Timeout timeout NoSuchWindow no such window InvalidCookieDomain invalid cookie domain ScriptTimeout script timeout SessionNotCreatedException session not created MoveTargetOutOfBounds move target out of bounds NoAlertOpenError no such alert InvalidElementCoordinates invalid coordinates stackTrace stacktrace
Error codes and data structures have changed as well. See references for implementation details.
Version history of both APIs is detailed in another question.
References
来源:https://stackoverflow.com/questions/37856694/selenium-json-wire-protocol-vs-webdriver-wire-protocol