Skip to content

Commit 4b46642

Browse files
committed
Merge pull request #47 from javigomez/45
[Imp] wait for installation folder removed
2 parents 017787d + f76002f commit 4b46642

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/JoomlaBrowser.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,14 @@ public function installJoomlaRemovingInstallationFolder()
158158

159159
$this->debug('Removing Installation Folder');
160160
$I->click(['xpath' => "//input[@value='Remove installation folder']"]);
161-
$I->waitForElement(['xpath' => "//input[@value='Installation folder successfully removed']"]);
161+
$I->debug('I wait for Removing Installation Folder button to become disabled');
162+
$I->waitForElementChange(
163+
['xpath' => "//input[@name='instDefault']"],
164+
function(WebDriverElement $el) {
165+
return $el->isEnabled();
166+
},
167+
60
168+
);
162169
$this->debug('Joomla is now installed');
163170
$I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']);
164171
}

0 commit comments

Comments
 (0)