Select English if the selector exists on selenium tests

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-05-24 13:26:00 +02:00
parent 1910579791
commit 325357c121
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -462,6 +462,11 @@ abstract class TestBase extends TestCase
return;
}
// Select English if the Language selector is available
if ($this->isElementPresent('id', 'sel-lang')) {
$this->selectByLabel($this->byId('sel-lang'), 'English');
}
// Clear the input for Microsoft Edge (remebers the username)
$this->waitForElement('id', 'input_username')->clear()->click()->sendKeys($username);
$this->byId('input_password')->click()->sendKeys($password);