adspace


difference between Implicit Wait and Explicit Wait with syntax.?

Answer Posted / sehgalkhyati@gmail.com

EXPLICIT WAIT- Will stop the execution for the given mentioned time.
WebDriverWait wait = new WebDriverWait(driver, 10);

WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("someid")));

IMPLICIT WAIT- will be applicable toeach and every element on web

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"));

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

985


what will be the first salary and what will be the hike in the salary?

929


What’s selenese?

920


Have you created any framework?

1038


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1197