9 use Codeception\Events;
10 use Codeception\Exception\ModuleRequireException;
11 use Codeception\Extension;
12 use Codeception\Module\WebDriver;
25 Events::TEST_BEFORE =>
'beforeTest',
26 Events::STEP_BEFORE =>
'beforeStep' 45 public function beforeTest(\Codeception\Event\TestEvent $e)
59 public function beforeStep(\Codeception\Event\StepEvent $e)
72 return $this->getModule($this->config[
'driver']);
96 $currentUri = $this->
getDriver()->_getCurrentUri();
98 if ($this->uri !== $currentUri) {
99 $this->uri = $currentUri;
102 }
catch (\Exception $e) {
beforeTest(\Codeception\Event\TestEvent $e)
beforeStep(\Codeception\Event\StepEvent $e)