Skip to content
Permalink
Browse files
[JENKINS-34522] Adapt to change in case
  • Loading branch information
daniel-beck committed Apr 17, 2017
1 parent 5458942 commit 2ab933150f1fabb6aa904c60a0535c296c869b55
@@ -59,7 +59,7 @@ public void addJob(Job job) {

public void scheduleJob(String name) {
open();
find(by.xpath("//a[contains(@href, '/%1$s/build?')]/img[contains(@title, 'Schedule a build')]", name)).click();
find(by.xpath("//a[contains(@href, '/%1$s/build?')]/img[contains(@title, 'Schedule a Build')]", name)).click();
}

public void scheduleJob(String name, Map<String, Object> params) {
@@ -31,7 +31,7 @@ public View(Injector injector, URL url) {
* Clicks a build button for a job of the specified name.
*/
public void build(String name) {
find(by.xpath("//a[contains(@href, '/%s/build?')]/img[contains(@title, 'Schedule a build')]", name)).click();
find(by.xpath("//a[contains(@href, '/%s/build?')]/img[contains(@title, 'Schedule a Build')]", name)).click();
}

/**
@@ -13,6 +13,6 @@ public void I_build_in_view(String job) throws Throwable {
else
my.view.open();

find(by.xpath("//a[contains(@href, '/%1$s/build?')]/img[contains(@title, 'Schedule a build')]", job)).click();
find(by.xpath("//a[contains(@href, '/%1$s/build?')]/img[contains(@title, 'Schedule a Build')]", job)).click();
}
}

0 comments on commit 2ab9331

Please sign in to comment.