Skip to content

Commit b6a245f

Browse files
committed
#389 Fix issue related to http (URL) provided to amOnPage
1 parent 2446353 commit b6a245f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,8 @@ public function saveScreenshot()
856856
*/
857857
public function amOnPage($page)
858858
{
859-
parent::amOnPage($page);
859+
(0 === strpos($page, 'http')) ? parent::amOnUrl($page) : parent::amOnPage($page);
860+
860861
$this->waitForPageLoad();
861862
}
862863

0 commit comments

Comments
 (0)