2016-11-11 39 views
0

我想在使用selenium 3.0.1的Firefox上運行驗收測試。我也使用wp-browserWPWebDriver模塊。我的acceptance-suit.yml看起來像這樣。Codeception驗收測試不能與Firefox一起使用

class_name: AcceptanceTester 
modules: 
    enabled: 
    - \Helper\Acceptance 
    - WPWebDriver 

config: 
     WPWebDriver: 
      url: 'https://staging.snapbox.com' 
      adminUsername: '[email protected]' 
      adminPassword: '[email protected]' 
      adminPath: '/wp-admin' 
      browser: firefox 
      webdriver.gecko.driver: 'bin/geckodriver.exe' 

在runnuning這個wpcept run acceptance testsCest.php我得到[Facebook\WebDriver\Exception\UnknownServerException] The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded fro
m https://github.com/mozilla/geckodriver/releases

回答

0

嘗試刪除 '.EXE'。

我成功運行了webdriver.gecko.driver: '/usr/local/bin/geckodriver'

另外,你把geckodriver.exe放在路徑中嗎?

相關問題