From 486ab08f0437ec5edeeca879d153f708f14fb944 Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Fri, 30 Jun 2023 09:21:21 +0200 Subject: [PATCH] fix test --- .../apitoken/LegacyApiTokenAdministrativeMonitorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/src/test/java/jenkins/security/apitoken/LegacyApiTokenAdministrativeMonitorTest.java b/test/src/test/java/jenkins/security/apitoken/LegacyApiTokenAdministrativeMonitorTest.java index 63068b594fe6..b78e99a3a9b5 100644 --- a/test/src/test/java/jenkins/security/apitoken/LegacyApiTokenAdministrativeMonitorTest.java +++ b/test/src/test/java/jenkins/security/apitoken/LegacyApiTokenAdministrativeMonitorTest.java @@ -336,7 +336,8 @@ private HtmlAnchor getFilterByIndex(HtmlPage page, SelectFilter selectFilter) { private HtmlButton getRevokeSelected(HtmlPage page) { HtmlElement document = page.getDocumentElement(); - HtmlButton revokeSelected = document.getOneHtmlElementByAttribute("button", "class", "action-revoke-selected"); + + HtmlButton revokeSelected = document.querySelector("button.action-revoke-selected"); assertNotNull(revokeSelected); return revokeSelected; }