0
votes

I'm using Codeception with the WebDriver module and I want to access the webdriver's sessionId in the _beforeSuite helper's function.

Any suggestions ?

1

1 Answers

2
votes

It is possible not in the _beforeSuite function, but in the _before and _after functions, like this:

public function _before(\Codeception\TestCase $test)
{     
    $sessionId = $this->getModule('WebDriver')->webDriver->getSessionID();
}