Selenium JSON有线协议与Webdriver有线协议

Anu*_*pta 7 migration w3c json protocols selenium-webdriver

我已经看到它JSON Wire Protocol已经过时了,而且Webdriver Wire Protocol是新的实现.

我想了解实现哪些变更Webdriver Wire Protocol以及它与之有何不同JSON Wire Protocol

Pau*_*tte 12

以下是已更改的命名约定:

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

错误代码和数据结构也发生了变化.有关实现细节,请参阅参考

两个API的版本历史记录在另一个问题中详述.

参考