From 9b8ebf4541bc2c46e4a2383e3da03b22df8a2fe1 Mon Sep 17 00:00:00 2001 From: Puneet Kala Date: Thu, 3 Sep 2015 17:48:32 +0530 Subject: [PATCH 1/2] Fixing the Xpath for Install Button --- src/JoomlaBrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index 3343e57..4b617da 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -329,7 +329,7 @@ public function installExtensionFromFolder($path, $type = 'Extension') $this->debug('I enter the Path'); $I->fillField(['id' => 'install_directory'], $path); // @todo: we need to find a better locator for the following Install button - $I->click(['xpath' => "//input[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button + $I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button $I->waitForText('was successful','30', ['id' => 'system-message-container']); $this->debug("$type successfully installed from $path"); } From 1c02f5313251bb430582915d62c77dffb440a35d Mon Sep 17 00:00:00 2001 From: Puneet Kala Date: Thu, 3 Sep 2015 17:51:24 +0530 Subject: [PATCH 2/2] Updating Extension Install from URL button --- src/JoomlaBrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index 4b617da..50efaff 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -351,7 +351,7 @@ public function installExtensionFromUrl($url, $type = 'Extension') $this->debug('I enter the url'); $I->fillField(['id' => 'install_url'], $url); // @todo: we need to find a better locator for the following Install button - $I->click(['xpath' => "//input[contains(@onclick,'Joomla.submitbutton4()')]"]); // Install button + $I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton4()')]"]); // Install button $I->waitForText('was successful','30', ['id' => 'system-message-container']); if ($type == 'Extension') {