我想在使用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