jakehilborn / debbit

Automate spending requirements for high interest checking accounts / credit cards
https://jakehilborn.github.io/debbit/
MIT License
264 stars 31 forks source link

Amazon reload not working #77

Closed yashwanth13 closed 2 years ago

yashwanth13 commented 2 years ago

I believe amazon might have changed the order of screens/removed some hoops for reloading a giftcard balance. As a result there is no longer a 'Continue' button and directly goes to 'Place your Order' screen.

Debbit errors out as below: v2.1.2 Windows Traceback (most recent call last): File "debbit.py", line 294, in web_automation_wrapper File "C:\Users\Shekhar Alampally\Downloads\debbit-v2.1.2-win64\program_files\merchants\amazon_gift_card_reload.py", line 160, in web_automation driver.find_element_by_xpath("//span[contains(text(),'Continue')]").find_element_by_xpath('../..').click() File "selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath File "selenium\webdriver\remote\webdriver.py", line 976, in find_element File "selenium\webdriver\remote\webdriver.py", line 321, in execute File "selenium\webdriver\remote\errorhandler.py", line 242, in check_response selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //span[contains(text(),'Continue')]

jakehilborn commented 2 years ago

Can you try replacing the file program_files\merchants\amazon_gift_card_reload.py with the latest version of that file here. I'm pretty sure your issue has been resolved with the latest code.

I've been working on getting a new release out with the latest amazon gift card reload code. Haven't quite finished yet.

yashwanth13 commented 2 years ago

Jake, it still failed with the latest code. Have a look and test it out when you get a chance. Thanks.

k10urzd commented 2 years ago

Can you try replacing the file program_files\merchants\amazon_gift_card_reload.py with the latest version of that file here. I'm pretty sure your issue has been resolved with the latest code.

I've been working on getting a new release out with the latest amazon gift card reload code. Haven't quite finished yet.

I've been checking for the latest release, this code resolved my Amazon problems. Thank you Jake!

Superpigdots commented 2 years ago

Yeah, I am getting the same error codes and mine did not fix with the updated file as well. Something is still broken.

jaj08 commented 2 years ago

Just wanted to reply to say that manually updating to your latest file fixed the issues I was having.

Superpigdots commented 2 years ago

Is there any update on this issue? Manually updating the file has not worked for me.

jakehilborn commented 2 years ago

Debbit v2.1.3 has been released. I hope this fixes your continue button issue. There have been a few bug fixes so I can't say with 100% certainty. I've enhanced the error reporting emails though so I'll be able to better tell if anything is still broken in v2.1.3.

jakehilborn commented 2 years ago

@yashwanth13 @Tanman897 Can you try replacing the file program_files/merchants/amazon_gift_card_reload.py with the lastest version on the master branch? I've attempted to fix the Unable to locate element: //span[contains(text(),'Continue')] bug but I do not get this workflow on Amazon so I can't verify the fix myself.

Superpigdots commented 2 years ago

Okay, I have now updated to the latest version and also updated this file like you suggested. Mine is set up to run the 2nd - 12th days of the month for two different cards (15 transactions total). I have already manually processed them since I had not heard back earlier and needed to complete my monthly transactions. I will have to wait till next month to see if it works; fingers crossed! :) Thanks for working on this so promptly!

jakehilborn commented 2 years ago

@Tanman897 Another user was able to verify that the Unable to locate element: //span[contains(text(),'Continue')] has been fixed. Debbit v2.1.4 includes this bug fix along with some others.

yashwanth13 commented 2 years ago

I can confirm that the v2.1.4 fixes the issue.