Jun-01-2019, 03:59 PM
Hi
I am trying to print value from a table using the following code
row = browser.find_element_by_xpath("//table[@cols='8']/tbody/tr[last()]/td[2]/div").text
print(row)
But the table is splitted across multiple web pages and pagination is being used to access various parts of table. So the above code is returning the text in last row of table on first web page, not the actual last row of table.. How to access actual last row of table
I am trying to print value from a table using the following code
row = browser.find_element_by_xpath("//table[@cols='8']/tbody/tr[last()]/td[2]/div").text
print(row)
But the table is splitted across multiple web pages and pagination is being used to access various parts of table. So the above code is returning the text in last row of table on first web page, not the actual last row of table.. How to access actual last row of table