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 is the meaning of assertion in selenium and what are the types of assertion?
Can we edit recorded selenium ide test cases?
How to run selenium webdriver test from the command line?
What is the difference between driver.findelement() and driver.findelements() commands?
Is there a way for me to know all available options when I start selenium server?
Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please
How can we create an object repository in selenium?
How do you read data from excel?
How can we check if an element is enabled for interaction on a web page?
Name the different types of waits in webdriver.
Why should testers opt for selenium and not qtp?
Explain the meaning of assertion in selenium and what are the types of assertion?
What does a concentrator do in the selenium network?
How do you perform drag and drop operation in webdriver?
What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?