Answers for "Selenium TestNG delay before actions"

0

Selenium TestNG delay before actions

// this example was found written in @Test. (as rasau ne teste, o paciam kode)

// explicit wait - to wait for the compose button to be click-able
WebDriverWait wait = new WebDriverWait(driver,30);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div[contains(text(),'COMPOSE')]")));
// click on the compose button as soon as the "compose" button is visible
driver.findElement(By.xpath("//div[contains(text(),'COMPOSE')]")).click();
Posted by: Guest on August-19-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language