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 |
Why selenium rc is used?
While injecting capabilities in webdriver to perform tests on a browser which is not supported by a webdriver what is the limitation that one can come across?
How do perform drag and drop using selenium webdriver?
What do we mean selenium selenium 1 and 2?
Which web driver implementation is the fastest?
Explain how selenium grid works?
How to perform right click using webdriver?
What are the types of listeners in testng?
Explain what does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.
What are testing types supported by selenium?
What is testng?
How to handle dropdowns in selenium?