Skip to content

Commit 7e8036d

Browse files
committed
Avoid false positives in Administrator Login
1 parent 51748ba commit 7e8036d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JoomlaBrowser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function doAdministratorLogin($user = null, $password = null)
5050

5151
$this->debug('I open Joomla Administrator Login Page');
5252
$I->amOnPage('/administrator/index.php');
53-
$this->debug('Fill Username Text Field');
53+
$I->waitForElement(['id' => 'mod-login-username'], 60);
54+
$this->debug('Fill Username Text Field');
5455
$I->fillField(['id' => 'mod-login-username'], $user);
5556
$this->debug('Fill Password Text Field');
5657
$I->fillField(['id' => 'mod-login-password'], $password);

0 commit comments

Comments
 (0)