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
How can we maximize browser window in selenium?
What is robot api?
How to get the number of frames on a page?
How does testng allow you to state dependencies?
Tell us how you can use recovery scenario with selenium?
How to write in a text box using Selenium?
What is the difference between verify and assert commands?
Why testers should opt for selenium and not qtp?
What is the meaning of assertion in selenium and what are the types of assertion?
How many exemptions do you know in selenium webdriver?
Is selenium server needed to run selenium webdriver scripts?
What is same origin policy and how it can be handled?
Do you know how to locate a link using its text in selenium?
How can you run selenium server other than the default port 4444?
Mention why do you need session handling while working with selenium?