Category:
Selenium WebDriver
//No. of Columns
List col = wd.findElements(By.xpath("".//*[@id='leftcontainer']/table/thead/tr/th""));
System.out.println(""Total No of columns are : "" +col.size());
//No.of rows
List rows = wd.findElements(By.xpath ("".//*[@id='leftcontainer']/table/tbody/tr/td[1]""));
System.out.println(""Total No of rows are : "" + rows.size());
for (int i =1;ir)
{
r=m;
}
}
System.out.println(""Maximum current price is : ""+ r);