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
List the parameters that one needs to pass in selenium.
Why should selenium be selected as a test tool?
How to validate the dropdown value contains specific value or not?
How to do file upload in selenium?
How to change the url on a webpage using selenium web driver?
Explain in selenium ide how can you debug the tests?
What is parameterization in testng?
Why testers should opt for selenium and not qtp? Selenium is more popular than qtp as
What are the different ways of locating a web element in selenium?
Explain xpath absolute and xpath attributes.
What is the main difference between the close() and quit() methods?
List some scenarios which we cannot automate using selenium webdriver?
Explain how you can debug the tests in selenium ide?
how to handle staleelementreferenceexception?
How can we find the value of different attributes like name, class, the value of an element?