I am wanting to use Webdriver in my codeception acceptance tests and am getting errors. I see I have to have the chromedriver running and tried running it from the command window and it seems to run fine using: chromedriver --url-base=/wd/hub. I want to use the RunProcess extension so added this to my acceptance.suite.yml file:
actor: AcceptanceTester
extensions:
enabled:
- Codecption\Extensions\RunProcess:
- chromedriver
modules:
enabled:
- WebDriver:
url: 'http://localhost/flightserve/'
browser: chrome
- \Helper\Acceptance
step_decorators: ~
and I get this error message and do not know hoe it needs to be defined.
Class Codecption\Extensions\RunProcess
is not defined. Autoload it or include into '_bootstrap.php' file of 'tests' directory
A few issues with your code:
Codeception\Extension\RunProcess
. So singular 'Extension' and 'Codeception' spelt correctly.sleep
:- Codeception\Extension\RunProcess:
0: chromedriver --url-base=/wd/hub
sleep: 5