KEYCLOAK-7761 Fix Instagram Social Login test
This commit is contained in:
parent
8a37395760
commit
64b391cc1b
1 changed files with 2 additions and 4 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package org.keycloak.testsuite.pages.social;
|
package org.keycloak.testsuite.pages.social;
|
||||||
|
|
||||||
|
import org.openqa.selenium.Keys;
|
||||||
import org.openqa.selenium.WebElement;
|
import org.openqa.selenium.WebElement;
|
||||||
import org.openqa.selenium.support.FindBy;
|
import org.openqa.selenium.support.FindBy;
|
||||||
|
|
||||||
|
@ -30,14 +31,11 @@ public class InstagramLoginPage extends AbstractSocialLoginPage {
|
||||||
@FindBy(name = "password")
|
@FindBy(name = "password")
|
||||||
private WebElement passwordInput;
|
private WebElement passwordInput;
|
||||||
|
|
||||||
@FindBy(xpath = "//input[@type='submit']")
|
|
||||||
private WebElement loginButton;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void login(String user, String password) {
|
public void login(String user, String password) {
|
||||||
usernameInput.clear();
|
usernameInput.clear();
|
||||||
usernameInput.sendKeys(user);
|
usernameInput.sendKeys(user);
|
||||||
passwordInput.sendKeys(password);
|
passwordInput.sendKeys(password);
|
||||||
loginButton.click();
|
passwordInput.sendKeys(Keys.RETURN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue