Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium 硒“;包括”;在–;用户内容转换_Selenium - Fatal编程技术网

Selenium 硒“;包括”;在–;用户内容转换

Selenium 硒“;包括”;在–;用户内容转换,selenium,Selenium,我试图在普通HTML和ASP.MVC站点(具有相同的DOM)上运行相同的测试。我使用类似以下命令修改测试的URL: java -jar selenium-server-standalone-2.24.1.jar -userExtensions user-extensions.js -htmlSuite "*googlechrome " "http://mybaseurl/razor" "C:\Selenium\Tests\test_suite.html" "result.ht

我试图在普通HTML和ASP.MVC站点(具有相同的DOM)上运行相同的测试。我使用类似以下命令修改测试的URL:

java -jar selenium-server-standalone-2.24.1.jar
     -userExtensions user-extensions.js
     -htmlSuite "*googlechrome " "http://mybaseurl/razor" "C:\Selenium\Tests\test_suite.html" "result.html"
     -userContentTransformation "(\$\{rootUrl\}.*)\.html" "$1"
     –proxyInjectionMode
该命令适用于Firefox(导航到最后没有
.html
的URL)。在Google Chrome中,“include”命令失败,出现以下错误:

“命令执行失败。请在中的用户组中从日志窗口搜索错误详细信息。错误消息为:无法调用未定义的方法'getCommandHandler'”


您正在运行旧版本的Selenium。升级对Chrome&ChromeDriver也一样。我用的是硒。服务器版本2.35.0仍然存在问题