I want to know how to log out of Facebook using python selenium. here's my code:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
#from selenium folder include webdriver folders
driver=webdriver.Firefox()
#Using this, we create the Firefox instance of Selenium webdriver.
driver.maximize_window()
driver.get("http://www.facebook.com")
assert "Facebook" in driver.title
user=driver.find_element_by_id("email")
user.clear()
user.send_keys("[email protected]")
passw=driver.find_element_by_id("pass")
passw.clear()
passw.send_keys("emmawatson1")
passw.send_keys(Keys.RETURN)
logout=driver.find_element_by_id("userNavigationLabel")
logout.click()
logout1=driver.find_element_by_class_name("uiLinkButtonInput") #error in this line
logout1.click()
time.sleep(5)
driver.quit()