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 programming languages does Selenium use?
Is it possible to automate the captcha using selenium?
How to handle ajax calls in selenium webdriver?
What evaluation can selenium do?
What is the difference between driver.findelement() and driver.findelements() commands?
its urgent, am trying for jobs. can anyone tell me please in corporate environment , how do we generate reports using selenium? is it default report or xslt report or custom report?? its very urgent.. thanks in advance
How to handle alerts in selenium webdriver?
Explain how you can handle colors in web driver?
List some advantages of test automation?
What is selenium?
How to check whether a text is underlined or not?
How you will login into any site if it is showing any authentication popup for username and password?