I am a bit new to selenium so pardon my ignorance. I am trying get rows of an ajax loaded table from a website. The code looks something like this:
try:
table = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "tableid")))
finally :
for row in table.xpath(".//tr"):
print(row)
However, I am getting the following error:
AttributeError: 'WebElement' object has no attribute 'xpath'
Let me know what the error