Skip to content

Commit b5b2154

Browse files
authored
Forward compatibility for jenkinsci/jenkins#10432 (#1932)
1 parent 6fb59ae commit b5b2154

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/main/java/org/jenkinsci/test/acceptance/po

src/main/java/org/jenkinsci/test/acceptance/po/Job.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ public <T extends Parameter> T addParameter(Class<T> type) {
365365

366366
control(by.checkbox("This project is parameterized")).check();
367367

368-
control(by.xpath("//button[text()='Add Parameter']")).selectDropdownMenu(type);
368+
control(by.xpath("//button[text()='Add Parameter' and not(contains(@class, 'hetero-list-add-top'))]"))
369+
.selectDropdownMenu(type);
369370

370371
// TODO selectDropdownMenu should not need this sleep - try and remove it
371372
elasticSleep(500);

0 commit comments

Comments
 (0)