diff --git a/src/test/java/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsTest.java b/src/test/java/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsTest.java index 05078a5..e508740 100644 --- a/src/test/java/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsTest.java +++ b/src/test/java/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsTest.java @@ -94,9 +94,7 @@ public void configRoundTripUpdateCertificates() throws Exception { store.addDomain(domain, credentials); HtmlForm form = getUpdateForm(domain, credentials); - for (HtmlElement button : form.getElementsByAttribute("input", "class", "secret-update-btn")) { - button.click(); - } + ((HtmlElement) form.querySelector(".secret-update-btn")).click(); form.getTextAreaByName("_.clientKeySecret").setText("new key"); form.getTextAreaByName("_.clientCertificate").setText("new cert");