Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/JoomlaBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ public function installExtensionFromFolder($path, $type = 'Extension')
$I->click(['link' => 'Install from Folder']);
$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' => "//button[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button
$I->click(['id' => 'installbutton_directory']); // Install button
$I->waitForText('was successful','60', ['id' => 'system-message-container']);
$this->debug("$type successfully installed from $path");
}
Expand All @@ -349,9 +348,8 @@ public function installExtensionFromUrl($url, $type = 'Extension')
$I->waitForText('Extensions: Install','30', ['css' => 'H1']);
$I->click(['link' => 'Install from URL']);
$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' => "//button[contains(@onclick,'Joomla.submitbutton4()')]"]); // Install button
$I->fillField(['id' => 'install_url'], $url);
$I->click(['id' => 'installbutton_url']); // Install button
$I->waitForText('was successful','30', ['id' => 'system-message-container']);
if ($type == 'Extension')
{
Expand Down