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);