diff --git a/src/test/java/com/xceptance/neodymium/junit5/testclasses/webDriver/DownloadFilesInDifferentWays.java b/src/test/java/com/xceptance/neodymium/junit5/testclasses/webDriver/DownloadFilesInDifferentWays.java index aaa0ada1..b67dbf2d 100644 --- a/src/test/java/com/xceptance/neodymium/junit5/testclasses/webDriver/DownloadFilesInDifferentWays.java +++ b/src/test/java/com/xceptance/neodymium/junit5/testclasses/webDriver/DownloadFilesInDifferentWays.java @@ -12,6 +12,7 @@ import org.junit.jupiter.api.AfterEach; +import com.codeborne.selenide.ClickOptions; import com.codeborne.selenide.Selectors; import com.codeborne.selenide.Selenide; import com.xceptance.neodymium.common.browser.Browser; @@ -54,7 +55,7 @@ public void downloadOnFormSubmission() $(".fc-cta-consent").click(); $("#fileSelector").uploadFile(new File("src/test/resources/2020-in-one-picture.png")); $("button[aria-label='COMBINED']").shouldBe(enabled); - $("button[aria-label='COMBINED']").scrollIntoView(true).click(); + $("button[aria-label='COMBINED']").click(ClickOptions.usingJavaScript()); waitForFileDownloading(); validateFilePresentInDownloadHistory(); }