install selenium python
# for Windows
pip install selenium
# for Linux/Max
pip3 install selenium
# or
sudo -H pip3 install selenium
install selenium python
# for Windows
pip install selenium
# for Linux/Max
pip3 install selenium
# or
sudo -H pip3 install selenium
python selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()
what is selenium python
# SELENIUM:
# - python library
# - opens up your browser and physically interacts with elements
# - used for task automation and web scraping
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us