Yii2 Codeception运行AcceptanceTester错误ChromeDriverService

时间:2019-05-11 11:38:23

标签: selenium webdriver selenium-chromedriver codeception

我运行测试后出现错误:

[Facebook\WebDriver\Exception\SessionNotCreatedException] Unable to create new service: ChromeDriverService
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'eret-Inspiron-5570', ip: '192.168.1.47', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-48-generic', java.version: '1.8.0_191'
Driver info: driver.version: unknown  

..../vendor/facebook/webdriver/lib/Exception/WebDriverException.php:154
..../vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:326
..../vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:126
..../vendor/symfony/event-dispatcher/EventDispatcher.php:212
..../vendor/symfony/event-dispatcher/EventDispatcher.php:44

acceptance.suite.yml

class_name: AcceptanceTester
modules:
    enabled:        
        - WebDriver:
            url: http://ocms.my
            browser: chrome            
        - Yii2:
            part: orm
            entryScript: index-test.php
            cleanup: false

控制台

java -jar -Dwebdriver.chrome.driver=~/chromedriver ~/selenium-server-standalone-3.141.59.jar
14:24:44.949 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
14:24:45.005 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444
2019-05-11 14:24:45.040:INFO::main: Logging initialized @263ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:24:45.184 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
14:24:45.247 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
14:24:48.164 INFO [ActiveSessionFactory.apply] - Capabilities are: {
  "browserName": "chrome"
}
14:24:48.166 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.grid.session.remote.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)

〜/ chromedriver -v ChromeDriver 75.0.3770.8(681f24ea911fe754973dda2fdc6d2a2e159dd300-refs / branch-heads / 3770 @ {#40})

已安装浏览器:铬 v 73.0.3683.86,在Ubuntu上构建,在Ubuntu 18.04(64位)上运行

0 个答案:

没有答案