无法为firefox 55运行php selenium webdriver

无法为firefox 55运行php selenium webdriver,php,selenium,geckodriver,facebook-php-webdriver,Php,Selenium,Geckodriver,Facebook Php Webdriver,在我的ubuntu 16.04中,当我运行时,它会打开selenium主页,并在控制台中抛出以下错误 PHP致命错误:未捕获Facebook\WebDriver\Exception\UnrecognizedException:无法将安全转换为布尔值 构建信息:版本:“3.5.3”,修订版:“a88d25fe6b”,时间:“2017-08-29T12:54:15.039Z” 系统信息:主机:'nest-aspire-e5-575',ip:'127.0.1.1',os.name:'Linux',os

在我的ubuntu 16.04中,当我运行时,它会打开selenium主页,并在控制台中抛出以下错误

PHP致命错误:未捕获Facebook\WebDriver\Exception\UnrecognizedException:无法将安全转换为布尔值 构建信息:版本:“3.5.3”,修订版:“a88d25fe6b”,时间:“2017-08-29T12:54:15.039Z” 系统信息:主机:'nest-aspire-e5-575',ip:'127.0.1.1',os.name:'Linux',os.arch:'amd64',os.version:'4.10.0-32-generic',java.version:'1.8.0_144' 驱动程序信息:Driver.version:unknown in/home/nest/selenium/vendor/facebook/webdriver/lib/Exception/WebDriverException.php:158 堆栈跟踪:0/home/nest/selenium/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php320:facebook\webdriver\Exception\WebDriverException::throweexception61,“转换失败…”,数组1/home/nest/selenium/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php535:facebook\webdriver\Remote\HttpCommandExecutor->executeObjectFacebook\webdriver\Remote\WebDriverCommand 2/home/nest/selenium/vendor/facebook/webdriver/lib/Remote/Remote/RemoteExecuteMethod.php40:facebook\webdriver\Remote\Remote\RemoteWebDriver->/第158行的home/nest/selenium/vendor/facebook/webdriver/lib/Exception/WebDriverException.php

配置

PHP 7.0.22-0ubuntu0.16.04.1客户端 Firefox 55.0.2 64位 geckodriver-v0.18.0-linux64 selenium-server-standalone-3.5.3 java-Dwebdriver.gecko.driver=/home/nest/selenium/geckodriver-jar selenium-server-standalone-3.5.3.jar的输出

06:48:12.855信息-Selenium构建信息:版本:“3.5.3”,修订版:“a88d25fe6b” 06:48:12.856信息-启动独立的Selenium服务器 2017-09-10 06:48:12.872:INFO::main:Logging initialized@223ms到org.seleniumhq.jetty9.util.log.StdErrLog 06:48:12.916信息-未找到驱动程序类:com.opera.core.systems.OperaDriver 06:48:12.940信息-跳过驱动程序提供程序类org.openqa.selenium.ie.InternetExplorerDriver注册: 注册功能功能[{ensureCleanSession=true,browserName=internet explorer,版本=,平台=WINDOWS}]与当前平台LINUX不匹配 06:48:12.940信息-跳过驱动程序提供程序类org.openqa.selenium.edge.EdgeDriver注册: 注册功能功能[{browserName=MicrosoftEdge,版本=,平台=WINDOWS}]与当前平台LINUX不匹配 06:48:12.940信息-跳过驱动程序提供程序类org.openqa.selenium.safari.SafariDriver注册: 注册功能功能[{browserName=safari,version=,platform=MAC}]与当前平台LINUX不匹配 06:48:12.962信息-使用直通模式处理程序 2017-09-10 06:48:12.986:信息:osjs.服务器:main:jetty-9.4.5.v20170502 2017-09-10 06:48:13.017:警告:osjs.SecurityHandler:main:ServletContext@o.s.j.s.ServletContextHandler@18eed359{/,null,start}已发现路径的http方法:/ 2017-09-10 06:48:13.021:INFO:osjsh.ContextHandler:main:Started o.s.j.s。ServletContextHandler@18eed359{/,空,可用} 2017-09-10 06:48:13.034:信息:osjs.AbstractConnector:main:已启动ServerConnector@1c7348f{HTTP/1.1[HTTP/1.1]}{0.0.0.0:4444} 2017-09-10 06:48:13.035:信息:osjs.Server:main:Started@386ms 06:48:13.035信息-Selenium服务器已启动并正在运行 2017-09-10 06:48:29.920:INFO:osjshC.ROOT:qtp1227229563-10:org.openqa.selenium.remote.server.WebDriverServlet-1d057a39:初始化WebDriverServlet 06:48:29.991信息-将默认提供程序绑定到:org.openqa.selenium.chrome.ChromeDriverService 06:48:29.992信息-找到处理程序:org.openqa.selenium.remote.server。BeginSession@4c16c489 06:48:29.995信息-/session:在/session处理程序:BeginSession上执行POST 06:48:30.056信息-功能包括:功能{browserName=firefox,platformName=ANY,platformName=ANY,platform=ANY,firefox_profile=uesdbbqaaaaaa42kkkvf9rxumga…,} 06:48:30.057信息-功能{browserName=firefox,platformName=ANY,platformName=ANY,firefox_profile=uesdbbqaaaa42kkkvf9rxumga…,}匹配类org.openqa.selenium.remote.server.ServicedSession$Factory provider:org.openqa.selenium.firefox.geckodriverse 06:48:30.057信息-功能{browserName=firefox,platformName=ANY,platformName=ANY,firefox_profile=uesdbbqaaaa42kkkvf9rxumga…,}匹配类org.openqa.selenium.remote.server.ServicedSession$Factory provider:org.openqa.selenium.chrome.ChromeDriverService 1505006310485壁虎河信息壁虎河0.18.0 1505006310509壁虎河信息监听127.0.0.1:11793 1505006311757 geckodriver::木偶网信息启动浏览器/usr/bin/firefox,带args[-木偶网] 1505006312726木偶信息通过-木偶启用 1505006316997在端口38555上侦听木偶信息 JavaScript错误:chrome://marionette/content/server.js,第337行:NS\U错误\U套接字\U地址使用中:组件返回的故障代码:0x804b0036 NS\U错误\U套接字\U地址使用中[nsIServerSocket.initSpecialCo [连接] 1505006317173木偶调试加载的listener.js 06:48:37.478信息-找到处理程序:org.openqa.selenium.remote.server。ServicedSession@51dd308a 06:48:37.480信息-会话8505af40-68e2-4bb2-9b42-86e6ee81309f firefox的处理程序线程:在/session/8505af40-68e2-4bb2-9b42-86e6ee81309f/url处理程序上执行POST:ServicedSession 1505006317551提线木偶调试在卸载前收到DOM事件约:空白 1505006318275木偶调试收到DOM事件页面隐藏的时间约为:空白 1505006318277木偶调试收到的DOM事件卸载约为:空 1505006319120木偶调试收到的DOM事件DOMContentLoaded for 1505006320699木偶调试收到的DOM事件页面显示 06:48:40.802信息-找到处理程序:org.openqa.selenium.remote.server。ServicedSession@51dd308a 06:48:40.804信息-会话8505af40-68e2-4bb2-9b42-86e6ee81309f firefox的处理程序线程:在/session/8505af40-68e2-4bb2-9b42-86e6ee81309f/cookie处理程序上执行删除:ServicedSession 06:48:40.870信息-找到处理程序:org.openqa.selenium.remote.server。ServicedSession@51dd308a 06:48:40.872信息-会话8505af40-68e2-4bb2-9b42-86e6ee81309f firefox的处理程序线程:在/session/8505af40-68e2-4bb2-9b42-86e6ee81309f/cookie处理程序上执行POST:ServicedSession


你必须设置geckodriver的路径我想:

java -Dwebdriver.gecko.driver="C:\Users\Dev\geckodriver-v0.11.1\geckodriver.exe" -jar C:\wamp\bin\php

\php5.6.25\selenium-server-standalone-3.0.1.jar

使用java-Dwebdriver.gecko.driver=/home/nest/selenium/geckodriver-jar selenium-server-standalone-3.5.3.jar尝试了哪个版本的gecko和seleniumI。同样的问题也发生了。我用selenium日志修改原始问题