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
How can we handle window ui elements and window pop ups using selenium?
What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?
What are the advantages of rc?
To generate pdf reports mention what java api is required?
Is the firefoxdriver a class or an interface?
What difference do you make between soft vs. Hard to say in selenium?
what are the testing frameworks used in selenium?
How can you redirect browsing from a browser through some proxy?
Is webelement an interface or a class?
What are the performance testing tools?
How is a statement different from verification?
What kind of mouse actions can be performed in selenium?
What kind of keyboard operations can be performed in selenium?
How you can switch between frames?
Mention what is the difference between implicit wait and explicit wait?