Context: I am attempting to scrape data from a website with JavaScript using Selenium in Python.
Goal: Extract a specific number from the table located at 159x26.
I believed that this code would retrieve the number from row 159, column 26.
Here is the code I used:
number = driver.find_element_by_xpath('//td[159]/tr[26]').text
Here is the specific cell at column 159, row 26:
<td class = "size-11">46581</td> == $0
I am looking to capture the number 46,581.
This is the error message I received:
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//td[159]/tr[26]"}