Hari-Nagarajan / fairgame

Tool to help us buy hard to find items.
GNU General Public License v3.0
2.44k stars 805 forks source link

The "add to cart" button no longer works #852

Closed Legendmode closed 2 years ago

Legendmode commented 2 years ago

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:

unknown unknown (1)

Can anyone help me solve the problem? thank you

charloti commented 2 years ago

Yup, I'm facing the same problem. Thanks for helping

Sylensky commented 2 years ago

iam experiencing the same behaviour

Sylensky commented 2 years ago

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"