Created
September 30, 2021 13:09
-
-
Save cristianzsh/bf417d23bcfe5f42e34df7c90ee3108b to your computer and use it in GitHub Desktop.
Exemplo do Selenium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
import time | |
driver = webdriver.Firefox() | |
driver.get("https://google.com") | |
elem = driver.find_element_by_name("q") | |
elem.clear() | |
elem.send_keys("daryus") | |
elem.send_keys(Keys.RETURN) | |
time.sleep(10) | |
driver.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment