(Jun-21-2019, 12:22 AM)metulburr Wrote: Thats not in your code though. (im too busy to write up code myself to log in)add this for a login method:
def login(self): # URL for google login url = "https://accounts.google.com/servicelogin" try: print("Passing URL to Browser...") self.browser.get(url) print(" ") time.sleep(4) print("What is your Google email?") email = raw_input("") print("What is your Google password?") password = raw_input("") print("Passing infomation to Browser...") email_input_box = self.browser.find_element_by_id("identifierId") time.sleep(.5) email_input_box.send_keys(email, Keys.ENTER) time.sleep(6.5) password_input_box = self.browser.find_element_by_class_name("whsOnd") time.sleep(.5) password_input_box.send_keys(password, Keys.ENTER) except Exception as exception: print(self.error) print("there was an exception when passing information to browser: ") print(exception)