From 6a6714952363f55704b5555a71ad235600ca4387 Mon Sep 17 00:00:00 2001 From: Olha Omelianchuk Date: Fri, 20 Dec 2024 11:52:04 +0100 Subject: [PATCH] [#330] try to stabilize DownloadFilesExecutorTest --- .../testclasses/webDriver/DownloadFilesInDifferentWays.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }