Skip to content

Commit

Permalink
Update selectors for credentials dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed Mar 8, 2024
1 parent d53a587 commit be47070
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ protected Credential(PageArea area, String relativePath) {
* Adds this credential and close the dialog.
*/
public void add() {
WebElement dialog = find(by.id("credentialsDialog"));
WebElement we = find(by.id("credentials-add-submit-button"));
WebElement dialog = find(by.id("credentials-dialog-form"));
WebElement we = find(by.css(".jenkins-button[data-id='ok']"));
we.click();
// wait for the form to be removed from the UI
waitFor(driver).until(ExpectedConditions.invisibilityOf(dialog));
Expand Down

0 comments on commit be47070

Please sign in to comment.