difference between Implicit Wait and Explicit Wait with syntax.?
Answer Posted / smruti ranjan patri
MPLICIT 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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the types of assertions there in selenium?
sorting java array
How to configure selenium web driver in eclipse?
What is testng and how is it better than junit?
Enlist the components of selenium.
What selenium components do you know?
What is assertion in selenium?
What happen if you mix both thread.sleep and webdriver waits in a selenium script?
What are the significant changes in upgrades in various selenium versions?
Explain what are the junits annotation linked with selenium?
What types of cases can be automated with Selenium?
How to check a Selenium checkbox?
Is there an htmlunitdriver for .net?
Explain how you can switch between frames?
What test can selenium perform?