qué es el selenio
- Selenium is a set of libraries that help us automate and interact
with the browsers.
Why Selenium?
- OPEN SOURCE -> FREE
- It supports different types of browsers
- It supports multiple different programming languages
- Huge community behind it so many answers to any problems/questions
- Could run on different OS systems such as: Mac, Windows, Linux etc.
python de selenio
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()
Qué contiene el Selenio
• Selenium IDE: implemented as a Chrome and Firefox extension,
and allows you to record, edit, and debug tests.
• Selenium RC: to write automated web application
UI tests in any programming language
• Selenium WebDriver: execute your tests against different browsers
• Selenium GRID: run your tests on different machines
against different browsers in parallel.
qué es selenium python
# SELENIUM:
# - python library
# - opens up your browser and physically interacts with elements
# - used for task automation and web scraping