use of org.awaitility.core.ConditionFactory in project selenium-webdriver-java by bonigarcia.
the class DownloadChromeJupiterTest method testDownloadChrome.
@Test
void testDownloadChrome() {
driver.get("https://bonigarcia.dev/selenium-webdriver-java/download.html");
driver.findElement(By.xpath("(//a)[2]")).click();
driver.findElement(By.xpath("(//a)[3]")).click();
ConditionFactory await = Awaitility.await().atMost(Duration.ofSeconds(5));
File wdmLogo = new File(targetFolder, "webdrivermanager.png");
await.until(() -> wdmLogo.exists());
File wdmDoc = new File(targetFolder, "webdrivermanager.pdf");
await.until(() -> wdmDoc.exists());
}
use of org.awaitility.core.ConditionFactory in project selenium-webdriver-java by bonigarcia.
the class DownloadChromeSelJupTest method testDownloadChrome.
@Test
void testDownloadChrome(ChromeDriver driver) {
driver.get("https://bonigarcia.dev/selenium-webdriver-java/download.html");
driver.findElement(By.xpath("(//a)[2]")).click();
driver.findElement(By.xpath("(//a)[3]")).click();
ConditionFactory await = Awaitility.await().atMost(Duration.ofSeconds(5));
File wdmLogo = new File(targetFolder, "webdrivermanager.png");
await.until(() -> wdmLogo.exists());
File wdmDoc = new File(targetFolder, "webdrivermanager.pdf");
await.until(() -> wdmDoc.exists());
}
use of org.awaitility.core.ConditionFactory in project selenium-webdriver-java by bonigarcia.
the class DownloadFirefoxSelJupTest method testDownloadFirefox.
@Test
void testDownloadFirefox(FirefoxDriver driver) {
driver.get("https://bonigarcia.dev/selenium-webdriver-java/download.html");
driver.findElement(By.xpath("(//a)[2]")).click();
driver.findElement(By.xpath("(//a)[3]")).click();
ConditionFactory await = Awaitility.await().atMost(Duration.ofSeconds(5));
File wdmLogo = new File(targetFolder, "webdrivermanager.png");
await.until(() -> wdmLogo.exists());
File wdmDoc = new File(targetFolder, "webdrivermanager.pdf");
await.until(() -> wdmDoc.exists());
}
use of org.awaitility.core.ConditionFactory in project selenium-webdriver-java by bonigarcia.
the class DownloadChromeNGTest method testDownloadChrome.
@Test
public void testDownloadChrome() {
driver.get("https://bonigarcia.dev/selenium-webdriver-java/download.html");
driver.findElement(By.xpath("(//a)[2]")).click();
driver.findElement(By.xpath("(//a)[3]")).click();
ConditionFactory await = Awaitility.await().atMost(Duration.ofSeconds(5));
File wdmLogo = new File(targetFolder, "webdrivermanager.png");
await.until(() -> wdmLogo.exists());
File wdmDoc = new File(targetFolder, "webdrivermanager.pdf");
await.until(() -> wdmDoc.exists());
}
use of org.awaitility.core.ConditionFactory in project selenium-webdriver-java by bonigarcia.
the class DownloadFirefoxNGTest method testDownloadFirefox.
@Test
public void testDownloadFirefox() {
driver.get("https://bonigarcia.dev/selenium-webdriver-java/download.html");
driver.findElement(By.xpath("(//a)[2]")).click();
driver.findElement(By.xpath("(//a)[3]")).click();
ConditionFactory await = Awaitility.await().atMost(Duration.ofSeconds(5));
File wdmLogo = new File(targetFolder, "webdrivermanager.png");
await.until(() -> wdmLogo.exists());
File wdmDoc = new File(targetFolder, "webdrivermanager.pdf");
await.until(() -> wdmDoc.exists());
}
Aggregations