Skip to content

Commit

Permalink
[#330] try to fix DownloadFilesInDifferentWays test
Browse files Browse the repository at this point in the history
  • Loading branch information
oomelianchuk committed Dec 18, 2024
1 parent c723710 commit ce41fe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ce41fe6

Please sign in to comment.