aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-qa-util
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-02-21 16:36:42 +0100
committerGitHub <noreply@github.com>2018-02-21 16:36:42 +0100
commite353cd6f2bd37ea143d5806e9ee85323cddd1f97 (patch)
treebaed6993aa339baa41e32e653b457a9f66ee1a24 /server/sonar-qa-util
parenta90637886c930df4d6da31e48e72b90707374730 (diff)
downloadsonarqube-e353cd6f2bd37ea143d5806e9ee85323cddd1f97.tar.gz
sonarqube-e353cd6f2bd37ea143d5806e9ee85323cddd1f97.zip
create and use Button component (#3087)
Diffstat (limited to 'server/sonar-qa-util')
-rw-r--r--server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/LoginPage.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/LoginPage.java b/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/LoginPage.java
index a11730125aa..3f765429d47 100644
--- a/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/LoginPage.java
+++ b/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/LoginPage.java
@@ -22,7 +22,6 @@ package org.sonarqube.qa.util.pageobjects;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.Selenide;
import com.codeborne.selenide.SelenideElement;
-import org.openqa.selenium.By;
public class LoginPage {
@@ -49,7 +48,7 @@ public class LoginPage {
public LoginPage submitWrongCredentials(String login, String password) {
Selenide.$("#login").val(login);
Selenide.$("#password").val(password);
- Selenide.$(By.name("commit")).click();
+ Selenide.$("[type=submit]").click();
return Selenide.page(LoginPage.class);
}
@@ -60,7 +59,7 @@ public class LoginPage {
private static <T> T submitCredentials(String login, String password, Class<T> expectedResultPage) {
Selenide.$("#login").val(login);
Selenide.$("#password").val(password);
- Selenide.$(By.name("commit")).click();
+ Selenide.$("[type=submit]").click();
Selenide.$("#login").should(Condition.disappear);
return Selenide.page(expectedResultPage);
}