Skip to content

Commit 6e249db

Browse files
committed
Merge pull request #74 from compojoom/delete_install_folder
wait for the folder to be deleted and then go further!
2 parents 7688d7b + e86820f commit 6e249db

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/JoomlaBrowser.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,9 @@ public function installJoomlaRemovingInstallationFolder()
210210

211211
$this->debug('Removing Installation Folder');
212212
$I->click(['xpath' => "//input[@value='Remove installation folder']"]);
213+
213214
$I->debug('I wait for Removing Installation Folder button to become disabled');
214-
// @todo https://github.com/joomla-projects/joomla-browser/issues/45
215-
$I->wait(2);
216-
/*
217-
$I->waitForElementChange(
218-
['xpath' => "//input[@name='instDefault']"],
219-
function(WebDriverElement $el) {
220-
return !$el->isEnabled();
221-
},
222-
60
223-
);
224-
*/
215+
$I->waitForJS("return jQuery('form#adminForm input[name=instDefault]').attr('disabled') == 'disabled';", 60);
225216

226217
$I->debug('Joomla is now installed');
227218
$I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']);

0 commit comments

Comments
 (0)