Selenium JSON Wire Protocol vs Webdriver Wire Protocol

亡梦爱人 提交于 2019-12-03 13:17:02

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!