0

I'm having a strange issue with selenium.

  1. This ruby code:

    page.all(:xpath, "//table[3]//tr[last()]//td")
    

    Will get me all the cells of the last row of the third table on a page.

  2. This python code:

    driver.find_elements_by_xpath("//table[3]//tr[last()]//td")
    

    Doesn't return anything at all.

Edit: The issue was with the page loading at different speeds. Waiting until the page loaded solved the problem.

ConorSheehan1
  • 1,640
  • 1
  • 18
  • 30

1 Answers1

1

The issue was that I was following a page redirect and trying to select elements before they were rendered. This answer solved it.

ConorSheehan1
  • 1,640
  • 1
  • 18
  • 30