Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- import time
- username = raw_input("Enter a STEAM username: ")
- password = raw_input("Enter a STEAM password: ")
- chrome_path = r"C:UsersSkidDesktopchromedriver.exe"
- driver = webdriver.Chrome(chrome_path)
- driver.get("http://www.****.com/index.php")
- driver.find_element_by_xpath("""//*[@id="navbar"]/ul[2]/a/img""").click()
- usernameBox = driver.find_element_by_xpath("""//*[@id="steamAccountName"]""")
- passwordBox = driver.find_element_by_xpath("""//*[@id="steamPassword"]""")
- usernameBox.send_keys(username)
- passwordBox.send_keys(password)
- driver.find_element_by_xpath("""//*[@id="imageLogin"]""").click()
- time.sleep(40)
- ##Buttons##
- ClearButton = driver.find_element_by_xpath("""//*[@id="mainpage"]/div[5]/div[1]/div/button[1]""")
- Plus1Button = driver.find_element_by_xpath("""//*[@id="mainpage"]/div[5]/div[1]/div/button[3]""")
- Plus10Button = driver.find_element_by_xpath("""//*[@id="mainpage"]/div[5]/div[1]/div/button[4]""")
- Plus100Button = driver.find_element_by_xpath("""//*[@id="mainpage"]/div[5]/div[1]/div/button[5]""")
- ########
- Balance = driver.find_element_by_xpath("""//*[@id="balance"]""")
- RedBetButton = driver.find_element_by_xpath("""//*[@id="panel1-7"]/div[1]/button""")
- GrayBetButton = driver.find_element_by_xpath("""//*[@id="panel8-14"]/div[1]/button""")
- BetEntryBox = driver.find_element_by_xpath("""//*[@id="betAmount"]""")
- Label = driver.find_element_by_xpath("""//*[@id="banner"]""")
- Plus1Button.click()
- def Bettings():
- while True:
- if "Rolling in 48.92..." in Label.text:
- Current_Balance = driver.find_element_by_xpath("""//*[@id="balance"]""")
- print('t')
- Updated_Balance = driver.find_element_by_xpath("""//*[@id="balance"]""")
- print('z')
- if "Rolling in 28.47..." in Label.text:
- print("2")
- if Current_Balance < Updated_Balance:
- print('3')
- GrayBetButton.click()
- if Current_Balance > Updated_Balance:
- print("4")
- RedBetButton.click()
- Bettings()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement