python selenium tutorial- automating web things

Publié le: 01 janvier 2021
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne python selenium tutorial- automating web things durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur idan python 01 janvier 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 95 fois et il a aimé 2 téléspectateurs. Bon visionnage!