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/span/a")
Here row is not capturing the number of rows in the table and returning empty list.
Attaching the code. Please suggest
InstructorJaspreet 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.