什么是W3c网络驱动程序协议。它与Json wire协议有何不同。为什么selenium从Json wire协议更改为W3c web驱动程序协议
发布于 2019-05-08 02:18:26
差异已在this answer中进行了详细说明。
以下是已更改的命名约定:
**JSON Wire Protocol*WebDriver Wire Protocol** version browserVersion platform platformName noProxy noproxy UnknownCommand未知命令NoSuchFrame无这样的帧NoSuchElement无这样的元素StaleElementReference陈旧的元素引用ElementIsNotSelectable元素不可选的JavaScriptError javascript错误超时超时NoSuchWindow无此类窗口InvalidCookieDomain无效Cookie域ScriptTimeout脚本超时SessionNotCreatedException会话未创建MoveTargetOutOfBounds移动目标越界NoAlertOpenError无此类警报InvalidElementCoordinates无效坐标stackTrace堆栈跟踪
错误代码和数据结构也发生了变化。有关实现的详细信息,请参阅参考。
another question中详细介绍了这两个API的版本历史。
References Relationships between different versions of Selenium - Yi Zeng
Selenium Issue #3551: Wire Protocol Documentation Issues
https://stackoverflow.com/questions/56027883
复制相似问题