How does you identify the list of links present on the page
Answer / नितिन
WebDriver driver = new FirefoxDriver();
driver.get("http://toolsqa.wpengine.com/");
java.util.List<WebElement> links = driver.findElements(By.tagName("a"));
System.out.println(links.size());
for (int i = 1; i<=links.size(); i=i+1)
{
System.out.println(links.get(i).getText());
}
| Is This Answer Correct ? | 3 Yes | 0 No |
How are web-based pop-ups handled in selenium?
What are core extension?
How is a statement different from verification?
List some of the test types that are supported by selenium.
Mention 5 different exceptions you had in selenium web driver?
When to use autoit?
Have you used any crossbrowsertesting tool to run selenium scripts on cloud?
What are the main advantages of selenium?
What are the prerequisites to run selenium webdriver?
How to pass parameters using testng.xml?
Give selenium ide tool disadvantage?
How do you upload a file?