Skip to content

Commit 1f440ac

Browse files
committed
Use in joomla installation the chosen select function
1 parent 7d9a477 commit 1f440ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/JoomlaBrowser.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@ public function installJoomla()
8686
$this->debug('I wait for Main Configuration');
8787
$I->waitForText('Main Configuration', 10,['xpath' => '//h3']);
8888

89-
$this->debug('I click Language Selector');
90-
$I->click(['xpath' => "//div[@id='jform_language_chzn']/a"]); // Language Selector
91-
$this->debug('I select en-GB');
92-
$I->click(['xpath' => "//li[text()='English (United Kingdom)']"]); // English (United Kingdom)
89+
$I->debug('I select en-GB as installation language')
90+
$I->selectOptionInChosen('Select Language', 'English (United Kingdom)');
9391
$I->wait(1);
9492
$this->debug('I fill Site Name');
9593
$I->fillField(['id' => 'jform_site_name'], 'Joomla CMS test');

0 commit comments

Comments
 (0)