User Tools

Site Tools


informatica:linux:selenium:instalacion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
informatica:linux:selenium:instalacion [2020/05/01 07:27] – created joseinformatica:linux:selenium:instalacion [2020/05/01 07:47] (current) jose
Line 15: Line 15:
  
   webdriver.Firefox(executable_path='/<mi path>/geckodriver')   webdriver.Firefox(executable_path='/<mi path>/geckodriver')
 +  
 +====== Ejecutar selenium interactivo ======
 +Abrimos la consola de python y lanzamos estos comandos, se nos abrirá un firefox
 +  ipython3
 +
 +<code>
 +from selenium import webdriver
 +from selenium.webdriver.firefox.options import Options
 +options = Options()
 +
 +driver = webdriver.Firefox(options=options)
 +</code>
 +
 +====== Abrir web ======
 +  url = 'http://www.renfe.com'
 +  driver.get(url)
 +
 +
 +
 +
informatica/linux/selenium/instalacion.1588318079.txt.gz · Last modified: 2020/05/01 07:27 by jose