Explicit Wait

Click start. The action button becomes clickable after a delay.

Ready to start.

How to test
// Java
driver.findElement(By.id("explicit_start")).click();
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(6));
WebElement button = wait.until(ExpectedConditions.elementToBeClickable(By.id("explicit_ready_btn")));
button.click();

# Python
driver.find_element(By.ID, "explicit_start").click()
wait = WebDriverWait(driver, 6)
button = wait.until(EC.element_to_be_clickable((By.ID, "explicit_ready_btn")))
button.click()

// Java - Full Test
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(6));
driver.findElement(By.id("explicit_reset")).click();
driver.findElement(By.id("explicit_start")).click();
WebElement readyButton = wait.until(
    ExpectedConditions.elementToBeClickable(By.id("explicit_ready_btn"))
);
readyButton.click();
WebElement result = wait.until(
    ExpectedConditions.visibilityOfElementLocated(By.id("explicit_success"))
);
assert result.getText().contains("Explicit wait completed");

# Python - Full Test
wait = WebDriverWait(driver, 6)
driver.find_element(By.ID, "explicit_reset").click()
driver.find_element(By.ID, "explicit_start").click()
ready_button = wait.until(EC.element_to_be_clickable((By.ID, "explicit_ready_btn")))
ready_button.click()
result = wait.until(EC.visibility_of_element_located((By.ID, "explicit_success")))
assert "Explicit wait completed" in result.text

// Java - Alternative Solution
driver.findElement(By.id("explicit_start")).click();
new WebDriverWait(driver, Duration.ofSeconds(6))
    .until(ExpectedConditions.elementToBeClickable(By.id("explicit_ready_btn")))
    .click();

# Python - Alternative Solution
driver.find_element(By.ID, "explicit_start").click()
WebDriverWait(driver, 6).until(
    EC.element_to_be_clickable((By.ID, "explicit_ready_btn"))
).click()


Tester Task
  1. Click the button with id explicit_start.
  2. Use an explicit wait until explicit_ready_btn is clickable.
  3. Click the ready button.
  4. Wait until explicit_success is visible.
  5. Verify the success message contains Explicit wait completed.