I trying to test this WEBSITE table data by using Java Selenium but there are two tables on the webpage with same class name datatable. When I set as:
private final static String table = "//table[contains(@class,'datatable')]";
then its scraping first table on the page and once its given both tables data of first page.
How can I set xPath separately for each table with one class on the same page?