Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from selenium import webdriver
- if len(sys.argv) != 3:
- username = input("username: ")
- password = input("password: ")
- else:
- username = sys.argv[1]
- password = sys.argv[2]
- chrome_options = webdriver.ChromeOptions()
- chrome_options.add_argument("headless")
- chrome_options.binary_location = ""
- driver = webdriver.Chrome(chrome_options = chrome_options)
- driver.get('https://www.reporo.com/analytics/login.php')
- driver.find_element_by_id('username').send_keys(username)
- driver.find_element_by_id('password').send_keys(password)
- driver.find_element_by_xpath("//button").click()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement