diff --git a/src/test/java/com/xceptance/neodymium/junit4/testclasses/webDriver/DownloadFilesInDifferentWays.java b/src/test/java/com/xceptance/neodymium/junit4/testclasses/webDriver/DownloadFilesInDifferentWays.java index 30332a86..f6d08f14 100644 --- a/src/test/java/com/xceptance/neodymium/junit4/testclasses/webDriver/DownloadFilesInDifferentWays.java +++ b/src/test/java/com/xceptance/neodymium/junit4/testclasses/webDriver/DownloadFilesInDifferentWays.java @@ -42,7 +42,7 @@ public void downloadViaLink() { fileName = new File("target/02_2020-Java_aktuell-Autor-Rene_Schwietzke-High-Performance-Java-Hinter-den-Kulissen-von-Java.pdf"); Selenide.open("https://blog.xceptance.com/2020/02/28/ijug-magazin-java-aktuell-high-performance-java/"); - $(".alignright.is-resized").scrollIntoView("{block: 'center'}").click(); + $(".alignright.is-resized").scrollIntoView(true).click(); waitForFileDownloading(); validateFilePresentInDownloadHistory(); } 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..9f6974a1 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 @@ -54,7 +54,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']").scrollIntoView("{block: 'center'}").click(); waitForFileDownloading(); validateFilePresentInDownloadHistory(); } diff --git a/src/test/java/com/xceptance/neodymium/junit5/tests/DownloadFilesExecutorTest.java b/src/test/java/com/xceptance/neodymium/junit5/tests/DownloadFilesExecutorTest.java index a9d24fb5..ea45f715 100644 --- a/src/test/java/com/xceptance/neodymium/junit5/tests/DownloadFilesExecutorTest.java +++ b/src/test/java/com/xceptance/neodymium/junit5/tests/DownloadFilesExecutorTest.java @@ -26,7 +26,7 @@ public static void beforeClass() throws IOException properties.put("browserprofile.chrome_download.browser", "chrome"); // needed to enable validation of chrome://downloads/ page - properties.put("browserprofile.chrome_download.headless", "false"); + properties.put("browserprofile.chrome_download.headless", "true"); properties.put("browserprofile.chrome_download.downloadDirectory", "target"); properties.put("browserprofile.firefox_download.name", "firefox_download");