diff --git a/src/Page.php b/src/Page.php index 0ee6659..3e7913e 100644 --- a/src/Page.php +++ b/src/Page.php @@ -448,7 +448,7 @@ private function waitForReloadGenerator($eventName, $loaderId) yield $delay; - // else if frame has still the previous loader, wait for the new one + // else if frame has still the previous loader, wait for the new one } else { yield $delay; } diff --git a/src/PageUtils/PageNavigation.php b/src/PageUtils/PageNavigation.php index aa45010..edc2cd8 100644 --- a/src/PageUtils/PageNavigation.php +++ b/src/PageUtils/PageNavigation.php @@ -171,16 +171,16 @@ private function navigationComplete($eventName) if ($this->page->hasLifecycleEvent($eventName)) { return true; - // or else just wait for the new event to trigger + // or else just wait for the new event to trigger } else { yield $delay; } - // else if frame has still the previous loader, wait for the new one + // else if frame has still the previous loader, wait for the new one } elseif ($this->frame->getLatestLoaderId() == $this->previousLoaderId) { yield $delay; - // else if a new loader is present that means that a new navigation started + // else if a new loader is present that means that a new navigation started } else { // if strict then throw or else replace the old navigation with the new one if ($this->strict) {