selenium testng delay before actions

Solutions on MaxInterview for selenium testng delay before actions by the best coders in the world

showing results for - "selenium testng delay before actions"
Arianna
28 Apr 2019
1// this example was found written in @Test. (as rasau ne teste, o paciam kode)
2
3// explicit wait - to wait for the compose button to be click-able
4WebDriverWait wait = new WebDriverWait(driver,30);
5wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div[contains(text(),'COMPOSE')]")));
6// click on the compose button as soon as the "compose" button is visible
7driver.findElement(By.xpath("//div[contains(text(),'COMPOSE')]")).click();
similar questions
queries leading to this page
selenium testng delay before actions