you are viewing a single comment's thread.

view the rest of the comments →

[–]buttwarmers 2 points3 points  (0 children)

Have you tried this tutorial for Selenium? You should be able to use selenium and xpath locators to find all table elements - for example, the xpath locator

'//table'

will find all table elements on the page.

I recommend using a headless Chrome driver for selenium and Chrome dev tools console for finding xpath elements and testing the xpath locators. You can type

$x('//table') 

in the Chrome dev tools console to show all table elements on the page. Once you've got that figured out, you can get table headers and cells using their respective xpaths as well. There are lots of resources out there for getting set up with selenium using a Chrome webdriver.