import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class readfromtable
{
public void fn_table() throws Exception
{
FirefoxDriver fd=new FirefoxDriver();
fd.get("url of web");
WebElement t=fd.findElement(By.id("tableid"));
List
for(WebElement r:rows)
{
List
for(WebElement c:cols)
{
System.out.println(c.getText());
}
}
}
}
Comments
Post a Comment