View This Site In Your Own Language

How to automatic log in into facebook

Automatic Log in into facebook:


from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait 
# download chromedriver from the link below
# https://sites.google.com/a/chromium.org/chromedriver/home

driver = webdriver.Chrome("/home/ikraminf/web-apps/chromedriver") # path of the chromedriver or chromedriver.exe

driver.maximize_window()

# Step 2) Navigate to Facebook
driver.get("http://www.facebook.com")

# Step 3) Search & Enter the Email or Phone field & Enter Password

username = driver.find_element_by_id("email")
password = driver.find_element_by_id("pass")
submit   = driver.find_element_by_id("u_0_b") 
username.send_keys("your email or phone number") # as like xyz@gmail.com
password.send_keys("your password") # as like 1234567
# Step 4) Click Login
submit.click()

code link : https://github.com/IkramInf/web-application-related-task

# Reference : Falcon Infomatic
How to automatic log in into facebook How to automatic log in into facebook Reviewed by Ikram on 9/24/2020 12:25:00 PM Rating: 5

No comments:

Powered by Blogger.