Just an example of the selenium webdriver program. This python program demonstrate the use of selenium library to automate browser functionalities.
Install selenium: python3 -m pip install selenium
Chrome driver: https://chromedriver.chromium.org/dow...
Code:
from selenium import webdriver
import os
import time
dir_path=os.path.dirname(os.path.realpath(__file__))
dir_path=dir_path+'/chromedriver'
driver=webdriver.Chrome(dir_path)
driver.get("https://google.com/")
search= driver.find_element_by_name("q")
search.send_keys("hello")
time.sleep(4)
button=driver.find_element_by_name("btnK")
button.click()
Sur cette page du site, vous pouvez voir la vidéo en ligne Python selenium webdriver tutorial: Google search through chromedriver durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeIt 24 décembre 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,304 fois et il a aimé 19 téléspectateurs. Bon visionnage!