difference between Implicit Wait and Explicit Wait with syntax.?
Answer Posted / arvind yadav
IMPLICIT WAIT:
WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://url_that_delays_loading");
WebElement myDynamicElement = driver.findElement(By.id("myDynamicElement"));
Explicitly wait :
WebDriverWait wait = new WebDriverWait(d,20);
wait.until(ExpectedConditions.presenceOfElementLocated(By.linkText("Any link")));
Is This Answer Correct ? | 21 Yes | 0 No |
Post New Answer View All Answers
What are some disadvantages of Selenium automation?
What is the use of logging in automation?
What are soft assert and hard assert in selenium?
How to delete browser cookies with selenium web driver?
What is the difference between setspeed() and sleep() methods?
Can we use selenium grid for performance testing?
What is page object model or pom?
sorting java array
How to get an attribute value using selenium webdriver?
What is the hybrid framework?
Explain why to choose python over java in selenium?
What are the important features of selenium ide?
What is same origin policy and how it can be handled?
What are the challenges and limitations of selenium webdriver?
Can you run the tests registered with Selenium IDE in other browsers?