aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-03-13 09:40:57 +0100
committerGrégoire Aubert <gregaubert@users.noreply.github.com>2017-03-13 10:03:16 +0100
commitd95da86123cb96c4f168ce470a38808a22c6d313 (patch)
treeba9211921fbead951965e7b6b61d466e8300651a
parent2d22a720e0a0fedceff5f4ba010de5ce4ec80634 (diff)
downloadsonarqube-d95da86123cb96c4f168ce470a38808a22c6d313.tar.gz
sonarqube-d95da86123cb96c4f168ce470a38808a22c6d313.zip
Change getSortingButton to private
-rw-r--r--it/it-tests/src/test/java/pageobjects/projects/FacetItem.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/it/it-tests/src/test/java/pageobjects/projects/FacetItem.java b/it/it-tests/src/test/java/pageobjects/projects/FacetItem.java
index 2d0adce7de4..79ff84d1005 100644
--- a/it/it-tests/src/test/java/pageobjects/projects/FacetItem.java
+++ b/it/it-tests/src/test/java/pageobjects/projects/FacetItem.java
@@ -46,6 +46,16 @@ public class FacetItem {
return this;
}
+ private SelenideElement getSortingButton(String selector) {
+ ElementsCollection buttons = this.elt.$$(".projects-facet-sort a");
+ return buttons.find(new Condition("AttributeMatch") {
+ @Override
+ public boolean apply(WebElement webElement) {
+ return webElement.getAttribute("href").matches(".*sort=" + selector + ".*");
+ }
+ });
+ }
+
public FacetItem sortListDesc() {
this.getSortingButton("-").click();
return this;
@@ -55,14 +65,4 @@ public class FacetItem {
this.getSortingButton("[a-zA-Z ]").click();
return this;
}
-
- public SelenideElement getSortingButton(String selector) {
- ElementsCollection buttons = this.elt.$$(".projects-facet-sort a");
- return buttons.find(new Condition("AttributeMatch") {
- @Override
- public boolean apply(WebElement webElement) {
- return webElement.getAttribute("href").matches(".*sort=" + selector + ".*");
- }
- });
- }
}