Skip to content

Commit 69cbe8c

Browse files
committed
Merge pull request #58 from puneet0191/FIXINSTALLBUTTON
Fixing Extension Installation Issue
2 parents 01924db + 1c02f53 commit 69cbe8c

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
@@ -329,7 +329,7 @@ public function installExtensionFromFolder($path, $type = 'Extension')
329329
$this->debug('I enter the Path');
330330
$I->fillField(['id' => 'install_directory'], $path);
331331
// @todo: we need to find a better locator for the following Install button
332-
$I->click(['xpath' => "//input[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button
332+
$I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button
333333
$I->waitForText('was successful','30', ['id' => 'system-message-container']);
334334
$this->debug("$type successfully installed from $path");
335335
}
@@ -351,7 +351,7 @@ public function installExtensionFromUrl($url, $type = 'Extension')
351351
$this->debug('I enter the url');
352352
$I->fillField(['id' => 'install_url'], $url);
353353
// @todo: we need to find a better locator for the following Install button
354-
$I->click(['xpath' => "//input[contains(@onclick,'Joomla.submitbutton4()')]"]); // Install button
354+
$I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton4()')]"]); // Install button
355355
$I->waitForText('was successful','30', ['id' => 'system-message-container']);
356356
if ($type == 'Extension')
357357
{

0 commit comments

Comments
 (0)