I'm using Codeception for acceptance testing. Selenium driver version 3.3.1 (selenium-server-standalone-3.3.1.jar) along with latest version of firefox 52 to test. I've already added geckodriver version 0.15 to the environment variable Path of Windows. But when running an acceptance test, I get the following error :
"[Error] Call to a member function get() on null "
In addition, I get the following warning in the selenium running terminal :
"The path to the driver executable must be set by the webdriver.gecko.driver system property"
The following is my acceptance.suite.yml file:
class_name: AcceptanceTester
modules:
enabled:
- WebDriver:
url: 'http://www.test.com/'
browser: 'firefox'
- Asserts
- \Helper\Acceptance
To run the selenium driver, I run the following command:
java -jar tests\selenium-server-standalone-3.3.1.jar
And to run the test, I run the following command:
vendor\bin\codecept run tests\acceptance\TestCest.php
Does selenium can not read the path from environment variable Path of Windows?