nickconnors / RTX-3070-Best-Buy-Bot

Selenium WebDriver Python script to auto checkout RTX 3070 graphics card when in stock
136 stars 57 forks source link

adds to cart but then at check out but im getting an error. #32

Open 14jojo opened 3 years ago

14jojo commented 3 years ago

It works well until it gets to the check out screen after adding it to cart. when it gets to the screen it gives me an error "restarting bot" and it just loops over and over adding the item into my cart then going to the cart but then starting the whole process over again. If anyone has a solution or if i am doing something wrong id appreciate it if someone told me, thank you.

ghost commented 3 years ago

Did you find any solution? I am having the exact same issue.

cardweller commented 3 years ago

Hi, The HTML of BestBuy's checkout page has changed. This works for me. I changed the product link to something that was in stock, and the full add to cart -> purchase complete script completed in about 9 seconds.

checkoutBtn = driver.find_element_by_class_name("btn-lg") checkoutBtn.click() print("Successfully added to cart - beginning check out")

cardweller commented 3 years ago

Likewaise, the HTML for the sign in button changed as well. Try this instead for the sign in button click

    signInBtn = checkoutBtn = driver.find_element_by_class_name("btn-lg")
    signInBtn.click()
    print("Signing in")
ghost commented 3 years ago

Likewaise, the HTML for the sign in button changed as well. Try this instead for the sign in button click

    signInBtn = checkoutBtn = driver.find_element_by_class_name("btn-lg")
    signInBtn.click()
    print("Signing in")

Hi, thank you for the response, I somehow still seem to have a problem when I run the code, can you share the entire code, for the bot, if it works great! Else I think the problem is when I initially instaled python, pip3, etc

jarroyo108 commented 3 years ago

The CVV also changed - anyone have a workaround?

jarroyo108 commented 3 years ago

Likewaise, the HTML for the sign in button changed as well. Try this instead for the sign in button click

    signInBtn = checkoutBtn = driver.find_element_by_class_name("btn-lg")
    signInBtn.click()
    print("Signing in")

Hey, do you know what the new code should be for the CVV number? That changed as well