Implicit Wait

Click start. A message appears after a short delay so testers can practice finding a delayed element.

Delayed message will appear here.
How to test
// Java
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));
driver.findElement(By.id("implicit_start")).click();
WebElement message = driver.findElement(By.id("implicit_message"));

# Python
driver.implicitly_wait(5)
driver.find_element(By.ID, "implicit_start").click()
message = driver.find_element(By.ID, "implicit_message")

// Java - Full Test
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));
driver.findElement(By.id("implicit_reset")).click();
driver.findElement(By.id("implicit_start")).click();
WebElement message = driver.findElement(By.id("implicit_message"));
assert message.isDisplayed();
assert message.getText().contains("Loaded with implicit wait");
assert message.getAttribute("data-status").equals("ready");

# Python - Full Test
driver.implicitly_wait(5)
driver.find_element(By.ID, "implicit_reset").click()
driver.find_element(By.ID, "implicit_start").click()
message = driver.find_element(By.ID, "implicit_message")
assert message.is_displayed()
assert "Loaded with implicit wait" in message.text
assert message.get_attribute("data-status") == "ready"

// Java - Alternative Solution
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));
driver.findElement(By.id("implicit_start")).click();
assert driver.findElement(By.id("implicit_message")).getText().contains("Loaded");

# Python - Alternative Solution
driver.implicitly_wait(5)
driver.find_element(By.ID, "implicit_start").click()
assert "Loaded" in driver.find_element(By.ID, "implicit_message").text


Tester Task
  1. Set an implicit wait of 5 seconds.
  2. Click the button with id implicit_start.
  3. Find the delayed element with id implicit_message.
  4. Verify the message is displayed.
  5. Verify the message contains Loaded with implicit wait.
  6. Verify the element has data-status="ready".