Skip to content

Commit

Permalink
#6647 adds wait for element before click
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wolfes committed Feb 27, 2018
1 parent 0c5648b commit 219fb11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integrationTests/adminFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ module.exports = class AdminFunctions{
await utils.getCasUrl(driver);
await utils.login(driver);
await driver.get(config.baseUrl + config.jenkinsContextPath + "/asynchPeople");
await driver.wait(until.elementLocated(By.linkText(this.testuserName)),5000);
await driver.findElement(By.linkText(this.testuserName)).click();
await driver.get(config.baseUrl + config.jenkinsContextPath + "/user/" + this.testuserName + "/delete");
await driver.findElement(By.id("yui-gen2-button")).click();};
await driver.findElement(By.id("yui-gen3-button")).click();};

async giveAdminRights(){

Expand Down

0 comments on commit 219fb11

Please sign in to comment.