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 |
What automation tools could be used for post-release validation with continuous integration?
What programming languages does Selenium use?
What are the different mouse actions that can be performed?
How can we deal with web-based pop-up?
What if you have written your own element locator and how would you test it?
What does a concentrator do in the selenium network?
How you can insert a start point in selenium ide?
What is the difference between the commit and verify commands?
What is the difference b/w close () and quit ()?
How to get typed text from a textbox?
How to export selenium ide test suite to selenium rc suites?
Please explain what are the different types of locators in selenium?