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
When do we use findelement() and findelements()?
What are the advantages of selenium webdriver?
What are core extension?
How to mouse hover an element in selenium?
What is page object model in selenium?
Using selenium ide is it possible to get data from a particular html table cell?
While using click command can you use screen coordinate?
How to retrieve css properties of an element?
What You Know About Selenium Grid?
What are the advantages and disadvantages of using selenium as testing tool?
What are the two modes of views in selenium ide?
Tell me what is a node in selenium grid?
What is desired capabilities?
What / supported operating system platforms Selenium?
What are the operating systems supported by selenium webdriver?