Skip to content

Commit

Permalink
[#330] try to stabilize DownloadFilesExecutorTest for junit4
Browse files Browse the repository at this point in the history
  • Loading branch information
oomelianchuk committed Dec 20, 2024
1 parent 6a67149 commit 916ebfb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;

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 @@ -58,7 +59,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, Duration.ofMillis(9000));
$("button[aria-label='COMBINED']").scrollIntoView("{block: 'center'}").click();
$("button[aria-label='COMBINED']").click(ClickOptions.usingJavaScript());
waitForFileDownloading();
validateFilePresentInDownloadHistory();
}
Expand Down

0 comments on commit 916ebfb

Please sign in to comment.