difference between Implicit Wait and Explicit Wait with syntax.?

Answer Posted / ravi teja

IMPLICIT WAIT:

This concept is only working for Find Element and Find Elements .

WebDriver driver = new FirefoxDriver();

driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

EXPLICIT WAIT:
It depends on condition by checking continuously

WebDriverWait w=new WebDriverWait(driver,100);

wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("//*[@class='firstname']")));

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we maximize browser window in selenium?

527


What is robot api?

543


How to get the number of frames on a page?

536


How does testng allow you to state dependencies?

499


Tell us how you can use recovery scenario with selenium?

471






How to write in a text box using Selenium?

508


What is the difference between verify and assert commands?

494


Why testers should opt for selenium and not qtp?

481


What is the meaning of assertion in selenium and what are the types of assertion?

457


How many exemptions do you know in selenium webdriver?

489


Is selenium server needed to run selenium webdriver scripts?

456


What is same origin policy and how it can be handled?

453


Do you know how to locate a link using its text in selenium?

472


How can you run selenium server other than the default port 4444?

451


Mention why do you need session handling while working with selenium?

492