diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index 3343e57..50efaff 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"); } @@ -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') {