Issue number of item during checkout
hello I would like to ask you a question please
on a site I extract all titles, prices, cities, categories. On the page there are 34 titles, prices etc. Except that at times on some page the price element does not have 34 elements but 10 in my loop for x in range (len (title)): I have an indexing error but I would like to know how to get around this because I need to export to a csv file I use python, thanks you
`for x in range(len(bot.titre())):
if "Aujourd'hui, 21:45" in bot.date()[x].text:
break
else:
global d
ligne = feuil1.row(d)
ligne2 = feuil1.row(d)
ligne3 = feuil1.row(d)
ligne4 = feuil1.row(d)
ligne5 = feuil1.row(d)
d = d + 1
ligne.write(0,bot.titre()[x].text)
**_ligne2.write(1,bot.prix()[x].text)_**
ligne3.write(2,bot.ville()[x].text)
ligne4.write(3,bot.date()[x].text)
ligne5.write(4,bot.categorie()[x].text)
feuil1.col(0).width = 15000`
As you can see, I have a problem with the bot.price () function because it is this element that is sometimes missing from the list and gives an index error.
This is a question rather than an issue. Please send questions to the selenium user group.
For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect. See CONTRIBUTING.md
This is a question rather than an issue. Please send questions to the selenium user group.
For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect. See CONTRIBUTING.md
Thank you I will post this on the forum