Skip to content

Commit

Permalink
[#330] try to stabilize DownloadFilesExecutorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
oomelianchuk committed Dec 20, 2024
1 parent 61c52c4 commit 6a67149
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 6a67149

Please sign in to comment.