Skip to content

Commit

Permalink
adjust xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 committed Oct 7, 2024
1 parent 6a9749d commit c74e00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jenkinsci/test/acceptance/po/LabelAxis.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public void select(String name) {
find(by.path(getPath())).findElement(by.xpath(".//input[@name='values' and @json='%s']", name));
if (!checkBox.isDisplayed()) {
// unfold the labels and slaves sub-nodes
find(by.xpath("//div[@class='yahooTree labelAxis-tree']//table[@id='ygtvtableel1']//a"))
find(by.xpath("(//button[@class='jenkins-button mp-label-axis__button'])[1]"))
.click();
find(by.xpath("//div[@class='yahooTree labelAxis-tree']//table[@id='ygtvtableel2']//a"))
find(by.xpath("(//button[@class='jenkins-button mp-label-axis__button'])[2]"))
.click();

waitFor().withTimeout(Duration.ofSeconds(3)).until(checkBox::isDisplayed);
Expand Down

0 comments on commit c74e00b

Please sign in to comment.