Trying to iterate though a list of elements by the index of a class. Each attempt the index doesnt increase. Adding quotes around %s produces an invalid syntax error.
lengeItem = len(driver.find_elements_by_xpath('//td[@class="baobab"]'))
i=1
for i in range(lengeItem):
Domaino = driver.find_element_by_xpath("//td[@class='baobab']['%s']/p/a" % i).text
print (Domaino)
print (Domaino)
iequal to 1 right before the iteration does nothing. And that particular iteration, the way you have it set will begin at zero.['%s+']do you expect?