Skip to content

Commit f8b594e

Browse files
committed
MQE-1181: Fatal error while test running
- Added null check for getDriver
1 parent ecf2143 commit f8b594e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Magento/FunctionalTestingFramework/Extension/PageReadinessExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ function () use ($metrics) {
187187
private function checkForNewPage($step)
188188
{
189189
try {
190-
$currentUri = $this->getDriver()->_getCurrentUri();
190+
if (isset($this->getDriver())) {
191+
$currentUri = $this->getDriver()->_getCurrentUri();
192+
} else {
193+
throw new \Exception();
194+
}
191195

192196
if ($this->uri !== $currentUri) {
193197
$this->logDebug(

0 commit comments

Comments
 (0)