Example #1
0
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)
Example #2
0
def clickButton(xpath, DRIVER):
    try:
        DRIVER.find_element_by_xpath(xpath).click()
        pass
    except Exception:
        time.sleep(1)
        clickButton(xpath, DRIVER)
Example #3
0
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()
Example #4
0
def clickAddToCartButton(xpath, DRIVER):
    try:
        DRIVER.find_element_by_xpath(xpath).click()
        pass
    except Exception:
        time.sleep(90)
        DRIVER.refresh()
        clickAddToCartButton(xpath, DRIVER)
Example #5
0
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()