Skip to content

Commit 3a2e47c

Browse files
committed
Merge pull request #88 from javigomez/logout
Improved locator for Front End Login function
2 parents bb9a3da + f5f37d1 commit 3a2e47c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JoomlaBrowser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public function doFrontEndLogin($user = null, $password = null)
9090
// @todo: update login button in joomla login screen to make this xPath more friendly
9191
$this->debug('I click Login button');
9292
$I->click(['xpath' => "//div[@class='login']/form/fieldset/div[4]/div/button"]);
93-
$this->debug('I wait to see Frontend Member Profile Form');
94-
$I->waitForElement(['xpath' => "//input[@value='Log out']"], 10);
93+
$this->debug('I wait to see Frontend Member Profile Form with the Logout button in the module');
94+
$I->waitForElement(['xpath' => "//form[@id='login-form']/div[@class='logout-button']"], 60);
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)