Ich bin auf dieses Codebeispiel gestoßen:
Code: Select all
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
wait.until(ExpectedConditions.urlContains("example"));
Assert.assertTrue(driver.getCurrentUrl().contains("example"));
Code: Select all
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
wait.until(ExpectedConditions.urlContains("example"));
Assert.assertTrue(driver.getCurrentUrl().contains("example"));