Skip to content

Commit a0b65b6

Browse files
author
Jelle Kok
committed
Fix installExtensionFromFolder on J36
1 parent 15da9b1 commit a0b65b6

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
@@ -328,8 +328,7 @@ public function installExtensionFromFolder($path, $type = 'Extension')
328328
$I->click(['link' => 'Install from Folder']);
329329
$this->debug('I enter the Path');
330330
$I->fillField(['id' => 'install_directory'], $path);
331-
// @todo: we need to find a better locator for the following Install button
332-
$I->click(['xpath' => "//button[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button
331+
$I->click(['xpath' => "//div[@id='folder']/fieldset/div[2]/input"]); // Install button
333332
$I->waitForText('was successful','60', ['id' => 'system-message-container']);
334333
$this->debug("$type successfully installed from $path");
335334
}

0 commit comments

Comments
 (0)