1. To find the list of items with tag name and click on particular link or Item.
List<WebElement> Member1 =
driver.findElements(By.tagName("a"));
float Members_Size1 = Member1.size();
system.out.println("Provider size is:"+Members_Size1);
3. Selenium Material Link :
http://www.browserstack.com/automate/java#
Member1.get(2).click();
2. How to capture the Text from alert .
Alert alert=
driver.switchTo().alert();
String text = alert.getText();
System.
out.println(text);
alert.accept();
3. Selenium Material Link :
http://www.browserstack.com/automate/java#
No comments:
Post a Comment