User Tools

Site Tools


informatica:linux:selenium:ejemplos

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
informatica:linux:selenium:ejemplos [2020/05/01 08:39] joseinformatica:linux:selenium:ejemplos [2020/07/04 00:22] (current) jose
Line 93: Line 93:
   o = driver.find_element_by_xpath(xpath)   o = driver.find_element_by_xpath(xpath)
   o.click()   o.click()
 +
 +====== Grabar todo el contenido de una web ======
 +<code>
 +content = driver.page_source
 +with open('webpage.html', 'w') as f:
 +    f.write(content)
 +</code>
informatica/linux/selenium/ejemplos.txt · Last modified: 2020/07/04 00:22 by jose