什么是W3c Web驱动程序协议。它与Json Wire协议有何不同。为什么硒从Json Wire协议更改为W3c Web驱动程序协议
答案 0 :(得分:0)
差异已在this answer中详细说明。
以下是已更改的命名约定:
**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的版本历史记录在another question中详细说明。
References Relationships between different versions of Selenium - Yi Zeng
Selenium Issue #3551: Wire Protocol Documentation Issues