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
I am not able to use "style" attribute to locate element with ie browser?
What are the testing kinds that can be supported by selenium?
How to find whether an element is displayed on the web page?
What is the wait?
What is actions class in webdriver
Mention what are the capabilities of selenium webdriver or selenium 2.0?
How to switch to a new window (new tab) which opens up after you click on a link?
How can you prepare customized html report using testng in hybrid framework?
What are the types of listeners in testng?
How can we fetch the page source in selenium?
How you can insert a start point in selenium ide?
Explain how you will login into any site if it is showing any authentication popup for username and password?
What are the limitations of using selenium as a test tool?
Explain junit. What are annotations?
In which format does source view show the script in selenium ide?