Codeception have a method, which executes selenium functions. I need to transfer an variable with sitename inside a function, which executes this method, so my code
$I->executeInSelenium(function(\WebDriver $webdriver) {
$webdriver->get('http://google.com');
});
might look like this:
$I->goToSite('http://google.com');