Skip to content

Instantly share code, notes, and snippets.

@sodastereo
Created May 12, 2020 19:00
Show Gist options
  • Save sodastereo/e02f353099a574363fc02306b0f8420e to your computer and use it in GitHub Desktop.
Save sodastereo/e02f353099a574363fc02306b0f8420e to your computer and use it in GitHub Desktop.
######################################################
# FB XPATHS #
######################################################
print("Let's Begin")
emailelement = driver.find_element(By.XPATH,".//*[contains(@id, 'email')]").send_keys(username)
print("Username Entered")
passwordelement = driver.find_element(By.XPATH,".//*[contains(@id, 'pass')]").send_keys(password)
print("Password Entered")
driver.find_element_by_id('loginbutton').click()
print("Login Successfull..")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment