def enterData(field, data, DRIVER): try: DRIVER.find_element_by_xpath(field).send_keys(data) pass except Exception: time.sleep(1) enterData(field, data, DRIVER)
def clickButton(xpath, DRIVER): try: DRIVER.find_element_by_xpath(xpath).click() pass except Exception: time.sleep(1) clickButton(xpath, DRIVER)
def XboxS( myFirstName, myLastName, myEmail, myAddress, myPhone, myCreditCardNum, myCreditExpireMonth, myCreditExpireYear, myCVV, supplier, myUsername, myPassword, ): messagebox.showinfo( "Message", 'Bot has been turned on. Press "Okay" to continue and the Xbox bot will run. This application may stop responding as it runs, but it will continue to run the scripts', ) if supplier == "Walmart": DRIVER.get("https://www.walmart.com/ip/XB1-Xbox-Series-S/606518560") order( DRIVER, myFirstName, myLastName, myEmail, myAddress, myPhone, myCreditCardNum, myCreditExpireMonth, myCreditExpireYear, myCVV, myUsername, myPassword, ) root.mainloop()
def clickAddToCartButton(xpath, DRIVER): try: DRIVER.find_element_by_xpath(xpath).click() pass except Exception: time.sleep(90) DRIVER.refresh() clickAddToCartButton(xpath, DRIVER)
def PlayStationPhysical( myFirstName, myLastName, myEmail, myAddress, myPhone, myCreditCardNum, myCreditExpireMonth, myCreditExpireYear, myCVV, supplier, myUsername, myPassword, ): messagebox.showinfo( "Message", 'Bot has been turned on. Press "Okay" to continue and the Playstation bot will run. This application may stop responding as it runs, but it will continue to run the scripts', ) if supplier == "Walmart": DRIVER.get( "https://www.walmart.com/ip/PlayStation-5-Console/363472942") order( DRIVER, myFirstName, myLastName, myEmail, myAddress, myPhone, myCreditCardNum, myCreditExpireMonth, myCreditExpireYear, myCVV, myUsername, myPassword, ) root.mainloop()