python selenium tutorial- automating web things

Published: 01 January 2021
on channel: idan python
95
2

this is actually a preface to the next video' so stay tuned :)
code:

from selenium import webdriver
import os
import time

try:
driver=webdriver.Chrome("B:\chromedriver.exe") # location of the chromedriver file

driver.get("https://www.facebook.com/") # opening chrome with facebook

search = driver.find_element_by_name("email") # getting the input with wanted id

search.send_keys("hello") # writing to this input



search = driver.find_element_by_name("pass")

search.send_keys("pass")

time.sleep(2)

button=driver.find_element_by_name("login")

button.click()

except Exception as e:
print e


On this page of the site you can watch the video online python selenium tutorial- automating web things with a duration of hours minute second in good quality, which was uploaded by the user idan python 01 January 2021, share the link with friends and acquaintances, this video has already been watched 95 times on youtube and it was liked by 2 viewers. Enjoy your viewing!