From 9e0d014bf1c62d8c65e339c1e87be0296a028a5d Mon Sep 17 00:00:00 2001 From: puneet0191 Date: Fri, 24 Jul 2015 20:59:14 +0530 Subject: [PATCH] Updating Xpaths, Refactoring old ones --- src/JoomlaBrowser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index ecdd657..a076c02 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -511,12 +511,12 @@ public function installLanguage($languageName) $this->debug('I check for Notices and Warnings'); $this->checkForPhpNoticesOrWarnings(); $this->debug('Refreshing languages'); - $I->click(['xpath' => "//*[@id=\"toolbar-refresh\"]/button"]); + $I->click(['xpath' => "//div[@id='toolbar-refresh']/button"]); $I->waitForElement(['id' => 'j-main-container'], 30); $I->searchForItem($languageName); $I->waitForElement($this->searchResultLanguageName($languageName), 30); $I->click(['id' => "cb0"]); - $I->click(['xpath' => "//*[@id='toolbar-upload']/button"]); + $I->click(['xpath' => "//div[@id='toolbar-upload']/button"]); $I->waitForText('was successful.', 30, ['id' => 'system-message-container']); $I->see('No Matching Results',['class' => 'alert-no-items']); $this->debug($languageName . ' successfully installed');