difference between Implicit Wait and Explicit Wait with syntax.?
Answer Posted / arvind yadav
IMPLICIT WAIT:
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"));
Explicitly wait :
WebDriverWait wait = new WebDriverWait(d,20);
wait.until(ExpectedConditions.presenceOfElementLocated(By.linkText("Any link")));
| Is This Answer Correct ? | 21 Yes | 0 No |
Post New Answer View All Answers
Give ide's main parts and components?
What distinguishes between an absolute and relative url in side?
What are the locators available in selenium?
What is the use of selenium grid?
What is the use of get options () method?
What is selenium-rc (remote control) ?
How do you launch ie/chrome browser?
Can we move back and forward in browser using selenium?
What are the main advantages of automation testing?
What’s new in selenium 3.0?
Which are the browsers supported by selenium rc?
Tell us how will you use selenium to upload a file?
What is the main disadvantage of implicit wait?
How can we launch different browsers in selenium webdriver?
Tell us how many exceptions do you know in selenium webdriver?