Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium JSON Wire Protocol vs Webdriver Wire Protocol

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?

like image 950
Anuj Gupta Avatar asked Jun 16 '16 10:06

Anuj Gupta


1 Answers

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

  • Relationships between different versions of Selenium - Yi Zeng

  • Selenium Changelog

  • Selenium Issue #3551: Wire Protocol Documentation Issues

  • W3C Living Document: WebDriver Protocol

  • Selenium Wiki: JSON Wire Protocol

like image 79
Paul Sweatte Avatar answered Oct 22 '22 21:10

Paul Sweatte