Fix Microsoft social login test case
Resolves #27120 Signed-off-by: Tomas Ondrusko <tondrusk@redhat.com>
This commit is contained in:
parent
fb49c21f90
commit
055a0e2231
1 changed files with 4 additions and 1 deletions
|
@ -35,6 +35,9 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
|
||||||
@FindBy(id = "idSIButton9")
|
@FindBy(id = "idSIButton9")
|
||||||
private WebElement submitButton;
|
private WebElement submitButton;
|
||||||
|
|
||||||
|
@FindBy(id = "acceptButton")
|
||||||
|
private WebElement acceptButton;
|
||||||
|
|
||||||
@FindBy(xpath = "//input[contains(@class,'btn-primary')]")
|
@FindBy(xpath = "//input[contains(@class,'btn-primary')]")
|
||||||
private WebElement appAccessButton;
|
private WebElement appAccessButton;
|
||||||
|
|
||||||
|
@ -57,7 +60,7 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
|
||||||
// While logging into the app for the first time user is asked if he wants to stay signed in
|
// While logging into the app for the first time user is asked if he wants to stay signed in
|
||||||
try {
|
try {
|
||||||
WaitUtils.pause(3000);
|
WaitUtils.pause(3000);
|
||||||
submitButton.click();
|
acceptButton.click();
|
||||||
}
|
}
|
||||||
catch (NoSuchElementException e) {
|
catch (NoSuchElementException e) {
|
||||||
log.info("User already allowed in the app");
|
log.info("User already allowed in the app");
|
||||||
|
|
Loading…
Reference in a new issue