Skip to content

Commit e01f8d7

Browse files
committed
improve locators in InstallExtensionFromDirectory
1 parent 57da50d commit e01f8d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/JoomlaBrowser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ public function installExtensionFromDirectory($path)
169169
{
170170
$I = $this;
171171
$I->amOnPage('/administrator/index.php?option=com_installer');
172-
$I->click('Install from Directory');
173-
$I->fillField('#install_directory', $path);
172+
$I->click(['link' => 'Install from Directory']);
173+
$I->fillField(['id' => 'Install from Directory'], $path);
174174
// @todo: we need to find a better locator for the following Install button
175-
$I->click("//input[contains(@onclick,'Joomla.submitbutton3()')]"); // Install button
176-
$I->waitForText('was successful', 10, '#system-message-container');
175+
$I->click(['xpath' => "//input[contains(@onclick,'Joomla.submitbutton3()')]"]); // Install button
176+
$I->waitForText('was successful', 10, ['id' => 'system-message-container']);
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)