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

What is the difference between “/” and “//” in xpath?

556


Firefox driver is class or an interface and from where is it inherited?

453


How to clear the text in the text box using selenium webdriver?

465


How to handle alerts in selenium?

519


Do you know how to mouse hover an element in selenium?

450






How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?

1040


What is the difference between assert and verify in selenium?

485


How can you find if an element in displayed on the screen?

447


How do I upload a file using selenium? I need to upload a word file during test execution.

471


What is a keyword driven framework?

533


What kind of testing does selenium support?

484


What are the significant changes/upgrades in various selenium versions?

515


How we handle pop-up web-based ?

546


What is selenium webdriver or google webdriver or selenium 2.0?

460


What is selenium-rc (remote control) ?

542