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 you say in regards to the flexibility of selenium test suite?
Which are the browsers supported by selenium ide?
What is framework and what are the frameworks available in rc?
Can you use Selenium to test the Rest API or Web services?
How to assert title of the web page?
where do u maintain all your test cases in manual not in selenium
What is page factory?
How can we handle window ui elements and window pop ups using selenium?
How can we handle windows based pop up?
What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?
How will u write page object models and data driven model.
What is desired capabilities?
What are the locators available in selenium?
Tell me does the selenium have any limitations?
How to switch to a new window (new tab) which opens up after you click on a link?