Select English if the selector exists on selenium tests
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
1910579791
commit
325357c121
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user