Skip to content

Commit 1d97d45

Browse files
committed
Improve locators in InstallJoomla
1 parent e01f8d7 commit 1d97d45

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
@@ -64,7 +64,7 @@ public function installJoomla()
6464

6565
// I Wait for the text Main Configuration, meaning that the page is loaded
6666
$this->debug('I wait for Main Configuration');
67-
$I->waitForText('Main Configuration', 10, 'h3');
67+
$I->waitForText('Main Configuration', 10,['xpath' => '//h3']);
6868

6969
$this->debug('I click Language Selector');
7070
$I->click("//div[@id='jform_language_chzn']/a"); // Language Selector
@@ -91,7 +91,7 @@ public function installJoomla()
9191
$I->click('Next');
9292

9393
$this->debug('I Fill the form for creating the Joomla site Database');
94-
$I->waitForText('Database Configuration', 10, 'h3');
94+
$I->waitForText('Database Configuration', 10,['css' => 'h3']);
9595

9696
$this->debug('I select MySQLi');
9797
$I->selectOption('#jform_db_type', $this->config['database type']);
@@ -125,9 +125,9 @@ public function installJoomla()
125125

126126
// Wait while Joomla gets installed
127127
$this->debug('I wait for Joomla being installed');
128-
$I->waitForText('Congratulations! Joomla! is now installed.', 10, '//h3');
128+
$I->waitForText('Congratulations! Joomla! is now installed.', 10, ['xpath' => '//h3']);
129129
$this->debug('Joomla is now installed');
130-
$I->see('Congratulations! Joomla! is now installed.','//h3');
130+
$I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']);
131131
}
132132

133133
/**

0 commit comments

Comments
 (0)