Created
March 18, 2021 12:59
-
-
Save FrenchTechLead/3b19a60eb3a5bf16f3bc308081d530a8 to your computer and use it in GitHub Desktop.
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 time import sleep | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
driver = webdriver.Chrome() | |
driver.get("https://www.wikipedia.org/") | |
searchInput = driver.find_element_by_name("search") | |
searchInput.clear() | |
searchInput.send_keys("selenium software") | |
sleep(2) | |
searchInput.send_keys(Keys.ARROW_DOWN) | |
searchInput.send_keys(Keys.RETURN) | |
sleep(3) | |
driver.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment