From 7e8036db60b573cc101ebe08e4001f05a9884f1e Mon Sep 17 00:00:00 2001 From: javier gomez Date: Wed, 13 Jan 2016 08:33:28 +0100 Subject: [PATCH] Avoid false positives in Administrator Login --- src/JoomlaBrowser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index 4550e74..ec2f190 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -50,7 +50,8 @@ public function doAdministratorLogin($user = null, $password = null) $this->debug('I open Joomla Administrator Login Page'); $I->amOnPage('/administrator/index.php'); - $this->debug('Fill Username Text Field'); + $I->waitForElement(['id' => 'mod-login-username'], 60); + $this->debug('Fill Username Text Field'); $I->fillField(['id' => 'mod-login-username'], $user); $this->debug('Fill Password Text Field'); $I->fillField(['id' => 'mod-login-password'], $password);