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
What kind of keyboard operations can be performed in selenium?
How to handle frame in webdriver?
What is page factory?
List some advantages of test automation?
@timeouts ||= Timeouts.new(@bridge) what does it mean?
How much does selenium license cost per client machine?
What is the difference between driver.close() and driver.quit() methods?
Which are the operating systems supported by selenium?
What difference do you make between soft vs. Hard to say in selenium?
How recorded command can be edited in ide?
Explain how to assert text of webpage using selenium 2.0?
What are the advantages of selenium as a test tool?
What is the reason to use the selenium grid?
How can you use the recovery scenario in selenium webdriver?
List the advantages of webdriver over selenium server?