Skip to content

Commit 9e0d014

Browse files
committed
Updating Xpaths, Refactoring old ones
1 parent 9cf297c commit 9e0d014

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
@@ -511,12 +511,12 @@ public function installLanguage($languageName)
511511
$this->debug('I check for Notices and Warnings');
512512
$this->checkForPhpNoticesOrWarnings();
513513
$this->debug('Refreshing languages');
514-
$I->click(['xpath' => "//*[@id=\"toolbar-refresh\"]/button"]);
514+
$I->click(['xpath' => "//div[@id='toolbar-refresh']/button"]);
515515
$I->waitForElement(['id' => 'j-main-container'], 30);
516516
$I->searchForItem($languageName);
517517
$I->waitForElement($this->searchResultLanguageName($languageName), 30);
518518
$I->click(['id' => "cb0"]);
519-
$I->click(['xpath' => "//*[@id='toolbar-upload']/button"]);
519+
$I->click(['xpath' => "//div[@id='toolbar-upload']/button"]);
520520
$I->waitForText('was successful.', 30, ['id' => 'system-message-container']);
521521
$I->see('No Matching Results',['class' => 'alert-no-items']);
522522
$this->debug($languageName . ' successfully installed');

0 commit comments

Comments
 (0)