KEYCLOAK-5437 Fix Facebook social login test

This commit is contained in:
Vaclav Muzikar 2017-09-08 15:44:15 +02:00
parent 0a5de1239f
commit 473aefacec
7 changed files with 7 additions and 0 deletions

View file

@ -35,6 +35,7 @@ public class FacebookLoginPage extends AbstractSocialLoginPage {
@Override
public void login(String user, String password) {
emailInput.clear();
emailInput.sendKeys(user);
passwordInput.sendKeys(password);
loginButton.click();

View file

@ -35,6 +35,7 @@ public class GitHubLoginPage extends AbstractSocialLoginPage {
@Override
public void login(String user, String password) {
usernameInput.clear();
usernameInput.sendKeys(user);
passwordInput.sendKeys(password);
loginButton.click();

View file

@ -41,6 +41,7 @@ public class GoogleLoginPage extends AbstractSocialLoginPage {
firstAccount.click();
}
catch (NoSuchElementException e) {
emailInput.clear();
emailInput.sendKeys(user);
emailInput.sendKeys(Keys.RETURN);
}

View file

@ -35,6 +35,7 @@ public class LinkedInLoginPage extends AbstractSocialLoginPage {
@Override
public void login(String user, String password) {
usernameInput.clear();
usernameInput.sendKeys(user);
passwordInput.sendKeys(password);
loginButton.click();

View file

@ -35,6 +35,7 @@ public class MicrosoftLoginPage extends AbstractSocialLoginPage {
@Override
public void login(String user, String password) {
usernameInput.clear();
usernameInput.sendKeys(user);
submitButton.click();
passwordInput.sendKeys(password);

View file

@ -48,6 +48,7 @@ public class StackOverflowLoginPage extends AbstractSocialLoginPage {
driver.switchTo().frame(loginFrame);
usernameInput.clear();
usernameInput.sendKeys(user);
passwordInput.sendKeys(password);

View file

@ -35,6 +35,7 @@ public class TwitterLoginPage extends AbstractSocialLoginPage {
@Override
public void login(String user, String password) {
usernameInput.clear();
usernameInput.sendKeys(user);
passwordInput.sendKeys(password);
loginButton.click();