Issue in data driven part 8 | Selenium Python Forum
kalpana Posted on 20/04/2021


Following the tutorial i was able to create a lead.

But in the process of validation of finding whether lead is created xpath is reading the correct lead name but the number of rows is not being read

and its not looping through the forloop in getRowNumByName() method. 

row = self.driver.find_elements_by_xpath("//*[@id='row1']/td[5]/span/a")

Here row is not capturing the number of rows in the table and returning empty list.
Attaching the code. Please suggest
Thank you

09914040666 Replied on 14/07/2021


Have you checked this xpath you are using on the page itself? Does it work there? If no, then you have to make the xpath.

Related Posts