diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/StackOverflowLoginPage.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/StackOverflowLoginPage.java index ca61109c73..ebb6384571 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/StackOverflowLoginPage.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/StackOverflowLoginPage.java @@ -20,35 +20,21 @@ package org.keycloak.testsuite.pages.social; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; -import static org.keycloak.testsuite.util.WaitUtils.waitUntilElement; - /** * @author Vaclav Muzikar */ public class StackOverflowLoginPage extends AbstractSocialLoginPage { - @FindBy(xpath = "//a[@title='log in with Stack_Exchange']") - private WebElement loginInitButton; - - @FindBy(id = "affiliate-signin-iframe") - private WebElement loginFrame; - - @FindBy(name = "email") + @FindBy(id = "email") private WebElement usernameInput; @FindBy(id = "password") private WebElement passwordInput; - @FindBy(xpath = "//input[@value='Sign In']") + @FindBy(xpath = "//input[@value='Log in']") private WebElement loginButton; @Override public void login(String user, String password) { - waitUntilElement(loginInitButton).is().visible(); - loginInitButton.click(); - - driver.switchTo().frame(loginFrame); - - usernameInput.clear(); usernameInput.sendKeys(user); passwordInput.sendKeys(password);