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()
Nesta página do site você pode assistir ao vídeo on-line Python selenium webdriver tutorial: Google search through chromedriver duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CodeIt 24 Dezembro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,304 vezes e gostou 19 espectadores. Boa visualização!