Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/JoomlaBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,11 @@ public function doAdministratorLogout()
$I = $this;
$I->click(['xpath' => "//ul[@class='nav nav-user pull-right']//li//a[@class='dropdown-toggle']"]);
$this->debug("I click on Top Right corner toggle to Logout from Admin");
$I->waitForElement(['xpath' => "//a[text() = 'Logout']"], 10);
$I->click(['xpath' => "//a[text() = 'Logout']"]);
$I->waitForText('Log in', 20);
$I->waitForElement(['id' => 'mod-login-username'], 10);
$I->waitForElement(['xpath' => "//li[@class='dropdown open']/ul[@class='dropdown-menu']//a[text() = 'Logout']"], 60);
$I->click(['xpath' => "//li[@class='dropdown open']/ul[@class='dropdown-menu']//a[text() = 'Logout']"]);
$I->waitForElement(['id' => 'mod-login-username'], 60);
$I->waitForText('Log in', 60, ['xpath' => "//fieldset[@class='loginform']//button"]);

}

/**
Expand Down