且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误“ [PHPUnit\Framework\Exception]未定义的索引:ELEMENT”使用WebDriver运行代码接收时

更新时间:2023-11-16 07:53:46

php-webdriver库尚不支持 w3c 模式。
您可以通过 w3c:false 作为获得传统行为的必需功能,

,但是更可靠的选择是使用ChromeDriver v74。

The php-webdriver library does not support w3c mode yet. You could pass w3c: false as a required capability to get legacy behaviour,
but a more reliable option is to use ChromeDriver v74.

更多信息可以在此票证中找到 https://github.com/facebook/php-webdriver/issues/469#issuecomment-499519728

More information can be found in this ticket https://github.com/facebook/php-webdriver/issues/469#issuecomment-499519728

更新: facebook / webdriver 库升级到1.7.0版本也应该解决此问题。

Update: upgrading facebook/webdriver library to 1.7.0 version should fix this issue too.