Skip to content

Commit

Permalink
[#330] fix DownloadFilesExecutorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
oomelianchuk committed Dec 18, 2024
1 parent ce41fe6 commit 452b5c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ private void validateFilePresentInDownloadHistory()
{
if (Neodymium.getBrowserName().contains("chrome"))
{
Selenide.open("chrome://downloads/");
System.out.println($$(Selectors.shadowCss("#title-area", "downloads-manager",
"#downloadsList downloads-item")).size());
$$(Selectors.shadowCss("#title-area", "downloads-manager",
"#downloadsList downloads-item")).asDynamicIterable().forEach(element -> System.out.println(element.getText()));
$$(Selectors.shadowCss("#title-area", "downloads-manager", "#downloadsList downloads-item")).findBy(exactText(fileName.getName()))
.should(exist, Duration.ofMillis(9000)).parent()
.find(".description[role='gridcell']")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,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", "true");
properties.put("browserprofile.chrome_download.headless", "false");
properties.put("browserprofile.chrome_download.downloadDirectory", "target");

properties.put("browserprofile.firefox_download.name", "firefox_download");
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", "true");
properties.put("browserprofile.chrome_download.headless", "false");
properties.put("browserprofile.chrome_download.downloadDirectory", "target");

properties.put("browserprofile.firefox_download.name", "firefox_download");
Expand Down

0 comments on commit 452b5c8

Please sign in to comment.