Skip to content

Commit 2a7493c

Browse files
authored
Adapt ATH to credentials plugin change (#2627)
1 parent a2f004b commit 2a7493c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/jenkinsci/test/acceptance/plugins/credentials/ManagedCredentials.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public Control checkSystemPage(String name) {
4141
* Check if the given credential is part of the domain.
4242
*/
4343
public Control checkIfCredentialsExist(String name) {
44-
By xpath = by.xpath("//td[contains(text(),'" + name + "')] | //a[contains(text(), '" + name + "')]");
44+
By xpath = by.xpath("//span[contains(text(), '" + name
45+
+ "')]/parent::div/parent::div | //div[contains(text(), '" + name + "')]/parent::div");
4546
return control(xpath);
4647
}
4748

0 commit comments

Comments
 (0)