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