I'm using the chrome-mink-driver extension of dmore for behat testing in Moodle 3.9. I configured everything as stated on https://tracker.moodle.org/browse/MDL-58948
My problem is, when starting the behat testing using "vendor/bin/behat --config /var/bht_moodledata/behatrun/behat/behat.yml --format pretty" I'm getting a fatal error:
┌─ @BeforeScenario # behat_hooks::before_scenario_hook()
╳ Fatal error: Call to a member function waitForLoad() on null (Behat\Testwork\Call\Exception\FatalThrowableError)
I debugged the problem and it seems that the start() function of the ChromeDriver class is never called. Instead of this, when running the behat testing, the i_visit() function in behat_general.php is called. Inside i_visit(), the session is fetched and the visit()-function is called (finally the visit()-function of the ChromDriver class). But inside the visit()-function of the ChromeDriver class there's no call to start() the browser. So the browser is never initialized. Anyone having trouble, too or any idea how to fix it?
temporarely fixed it by modifying the ChromeDriver class to call the
start() function when visit() is called. This works atm for me and all
tests are passing. But I'm confused if other ppl facing the same "bug"
or if anyone can confirm if it's a bug or if not...