Anuj Gupta Anuj Gupta - 9 months ago 93
JSON Question

Selenium JSON Wire Protocol vs Webdriver Wire Protocol

I have seen that the

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

Answer Source

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.