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 the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?
Enlist the components of selenium.
Describe technical problems that you had with selenium tool?
What is Selenese?
what are the testing frameworks used in selenium?
How to check the checkbox or radio button is selected?
How to iterate through options in test script?
What are driver.close and driver.quit in WebDriver? Which is more preferable?
What is the difference between close() and quit()?
Explain xpath.
What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?
How will you use selenium to upload a file?
How to assert the title of the web page?
What are the types of waits available in selenium webdriver?
How can we launch different browsers in selenium webdriver?