I need to connect the WebdriverEventListener module to my acceptance tests, for event handling.
I’m trying to use a code like this:
$iii = $I->executeInSelenium(function (WebDriverEventListener $driverEventListener) use ($candidatesTable) {
return $driverEventListener->afterChangeValueOf($candidatesTable);
});
But I’m getting an error:
[TypeError] backendtestsacceptanceLoadMainPagesCest::backendtestsacceptance{closure}(): Argument #1 ($driverEventListener) must be of type FacebookWebDriverWebDriverEventListener, FacebookWebDriverRemoteRemoteWebDriver given, called in /var/www/hr-tools.ru/vendor/codeception/module-webdriver/src/Codeception/Module/WebDriver.php on line 2731
Any help would be appreciated.
New contributor
Serious Belick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.