I am trying to click on the "Edit" button in the Facebook "Change password" security settings through Python.
# logs in to facebook
browser = webdriver.Chrome(executable_path='/path/to/webdriver')
# Navigate to Facebook
browser.get("http://www.facebook.com")
browser.maximize_window()
# Search & Enter the Email or Phone field & Enter Password
username = browser.find_element_by_id("email")
username.send_keys("email@gmail.com")
password = browser.find_element_by_id('pass')
password.send_keys('password')
submit = browser.find_element_by_name('login')
submit.click()
print("logged in")
time.sleep(5)
# navigates to security
browser.get("http://www.facebook.com/settings?tab=security")
time.sleep(3)
I'm completely new at this, but this code so far runs, and logs into the facebook page, and goes to the security settings. I can't figure out how to click the button, however. Using Inspect, I wasn't able to find an ID and after a lot of googling, I think it may be an issue concerning Frames? Any advice would be helpful!