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


Please Help Members By Posting Answers For Below Questions

What does side stand for?

529


What are the two modes of views in selenium ide?

569


How can we check if an element is getting displayed on a web page?

513


Mention different exceptions you had in selenium web driver?

447


From your test script how you can create html test report?

475






Explain how you can insert a start point in selenium ide?

482


How to highlight element using selenium webdriver?

454


How to handle a dropdown in selenium webdriver?

2517


What are the testing types that can be supported by selenium?

510


What are some advantages of selenium?

514


What’s the difference between borland silk evaluation and selenium?

515


What is selenium rc?

496


Tell us what selenium components do you know?

456


How can you insert a start point in selenium ide?

483


How selenium grid works?

480