informatica:linux:selenium:instalacion
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| informatica:linux:selenium:instalacion [2020/05/01 07:27] – created jose | informatica:linux:selenium:instalacion [2020/05/01 07:47] (current) – jose | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| webdriver.Firefox(executable_path='/< | webdriver.Firefox(executable_path='/< | ||
| + | | ||
| + | ====== Ejecutar selenium interactivo ====== | ||
| + | Abrimos la consola de python y lanzamos estos comandos, se nos abrirá un firefox | ||
| + | ipython3 | ||
| + | |||
| + | < | ||
| + | from selenium import webdriver | ||
| + | from selenium.webdriver.firefox.options import Options | ||
| + | options = Options() | ||
| + | |||
| + | driver = webdriver.Firefox(options=options) | ||
| + | </ | ||
| + | |||
| + | ====== Abrir web ====== | ||
| + | url = ' | ||
| + | driver.get(url) | ||
| + | |||
| + | |||
| + | |||
| + | |||
informatica/linux/selenium/instalacion.1588318079.txt.gz · Last modified: by jose
