From 64b391cc1b9c072b6bb8fabf7b1db5c3377b34fa Mon Sep 17 00:00:00 2001 From: vmuzikar Date: Tue, 3 Jul 2018 07:28:42 +0200 Subject: [PATCH] KEYCLOAK-7761 Fix Instagram Social Login test --- .../keycloak/testsuite/pages/social/InstagramLoginPage.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/InstagramLoginPage.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/InstagramLoginPage.java index c9b5165302..401728a2d6 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/InstagramLoginPage.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/InstagramLoginPage.java @@ -17,6 +17,7 @@ package org.keycloak.testsuite.pages.social; +import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; @@ -30,14 +31,11 @@ public class InstagramLoginPage extends AbstractSocialLoginPage { @FindBy(name = "password") private WebElement passwordInput; - @FindBy(xpath = "//input[@type='submit']") - private WebElement loginButton; - @Override public void login(String user, String password) { usernameInput.clear(); usernameInput.sendKeys(user); passwordInput.sendKeys(password); - loginButton.click(); + passwordInput.sendKeys(Keys.RETURN); } }