Skip to content

Commit

Permalink
[JENKINS-37276] Only use @describable to discover publishers path
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-arabaolaza committed Oct 17, 2016
1 parent ba3c2c8 commit 4fdd9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jenkinsci/test/acceptance/po/Job.java
Expand Up @@ -137,7 +137,7 @@ private <T extends Step> T addStep(Class<T> type, String section) {
elasticSleep(1000); // it takes some time until the element is visible
String path = null;
// if I have got a Describable use it to get the path
if (describableValue != null) {
if (describableValue != null && type.equals(PostBuildStep.class)) {
List<WebElement> newSteps = driver.findElements(by.xpath("//div[@name='%s']", section));
outer:
for (WebElement element : newSteps) {
Expand Down

0 comments on commit 4fdd9c8

Please sign in to comment.