From f76002f88699fe35ec4bd5e65dbf988b2b3c0f6e Mon Sep 17 00:00:00 2001 From: javier gomez Date: Wed, 5 Aug 2015 11:17:47 +0200 Subject: [PATCH] [Imp] wait for installation folder removed This pull closes #45 --- src/JoomlaBrowser.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index be1390c..f21afe0 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -158,7 +158,14 @@ public function installJoomlaRemovingInstallationFolder() $this->debug('Removing Installation Folder'); $I->click(['xpath' => "//input[@value='Remove installation folder']"]); - $I->waitForElement(['xpath' => "//input[@value='Installation folder successfully removed']"]); + $I->debug('I wait for Removing Installation Folder button to become disabled'); + $I->waitForElementChange( + ['xpath' => "//input[@name='instDefault']"], + function(WebDriverElement $el) { + return $el->isEnabled(); + }, + 60 + ); $this->debug('Joomla is now installed'); $I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']); }