The "add to cart" button no longer works
Closed this issue · 3 comments
Legendmode commented
Hello everyone. For a few days the bot has crashed with an error on the product and does not add it to the cart. Until a few weeks ago everything was working fine. I have done some tests and it crashes with the following error:
2022-02-09 08:27:40|0.6.9|ERROR|failed to find //input[@value='add' and @name='add']
Version:
- google chrome Versione 98.0.4758.82
- amazon.co.uk - amazon.de - amazon.it - amazon.fr - amazon.es
Can anyone help me solve the problem? thank you
charloti commented
Yup, I'm facing the same problem. Thanks for helping
Sylensky commented
iam experiencing the same behaviour
Sylensky commented
small research on the discord lead to the following working conclusion brought up from Rudi:
replace this line: https://github.com/Hari-Nagarajan/fairgame/blob/master/stores/amazon.py#L942
with: xpath = "//*[@id='a-autoid-0']/span/input"