Showing posts with label wait for alert. Show all posts
Showing posts with label wait for alert. Show all posts

As we have seen in my previous posts, we can use textToBePresentInElementLocated(By, String) WebDriver condition to wait for text present on page and we can use elementToBeClickable(By locator) to wait for element clickable/present on page. If you read both those posts, We had used explicit waits in both the cases and both are canned expected conditions of webdriver so we can use them directly in our test case without any modifications. selenium wait until alert is present is useful to pause test execution until alert dispalyed on page.