KEYCLOAK-7761 Fix Instagram Social Login test

This commit is contained in:
vmuzikar 2018-07-03 07:28:42 +02:00 committed by Pavel Drozd
parent 8a37395760
commit 64b391cc1b

View file

@ -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);
}
}