MDL-82787 behat: Correct stop of webdriver on failure

This commit is contained in:
Andrew Nicols
2024-08-21 08:46:26 +08:00
parent 1984d0f465
commit 71f7003de8
@@ -87,7 +87,8 @@ class WebDriver extends UpstreamDriver {
parent::stop();
} catch (DriverException $e) {
error_log($e->getMessage());
$this->webDriver = null;
$rcp = new \ReflectionProperty(parent::class, 'webDriver');
$rcp->setValue($this, null);
}
}
}