Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Get all the Values in a Column of Dynamic Table using Selenium WebDriver

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);

Leave a Reply

Your email address will not be published. Required fields are marked *