Skip to content

Commit 81fd89f

Browse files
author
Jelle Kok
committed
Also fix from url
1 parent a0b65b6 commit 81fd89f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/JoomlaBrowser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ public function installExtensionFromUrl($url, $type = 'Extension')
349349
$I->click(['link' => 'Install from URL']);
350350
$this->debug('I enter the url');
351351
$I->fillField(['id' => 'install_url'], $url);
352-
// @todo: we need to find a better locator for the following Install button
353-
$I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton4()')]"]); // Install button
352+
$I->click(['xpath' => "//div[@id='url']/fieldset/div[2]/input"]); // Install button
354353
$I->waitForText('was successful','30', ['id' => 'system-message-container']);
355354
if ($type == 'Extension')
356355
{

0 commit comments

Comments
 (0)