difference between Implicit Wait and Explicit Wait with syntax.?
Answer Posted / smruti ranjan patri
MPLICIT 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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different keyboard operations that can be performed in selenium?
Describe the purpose of xpath.
What are the challenges and limitations of selenium webdriver?
What is parameterization in testng?
What are the types of waits available in selenium webdriver?
Can captcha and bar code reader be automated by using selenium?
How will you find an element using selenium?
How does one capture a page title in selenium 2.0?
Tell me how colors could be handled in selenium webdriver?
What are the features of testng and list some of the functionality in testng which makes it more effective?
How to run test case traced by employing ide in browsers?
What distinguishes between an absolute and relative url in side?
Tell us how can you run selenium server other than the default port 4444?
Tell us what selenium components do you know?
What are the advantages and disadvantages of selenium over other testing tools like qtp and testcomplete?