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
Last revisionBoth sides next revision
informatica:linux:selenium:ejemplos [2020/05/01 08:38] joseinformatica:linux:selenium:ejemplos [2020/05/01 08:39] jose
Line 88: Line 88:
   xpath = "//select[@name='currency']/option[@value='ESP']"   xpath = "//select[@name='currency']/option[@value='ESP']"
   o = driver.find_element_by_xpath(xpath)   o = driver.find_element_by_xpath(xpath)
 +  o.click()
 Podemos seleccionar por texto, pero cuidado con las webs multidioma:   Podemos seleccionar por texto, pero cuidado con las webs multidioma:  
   xpath = "//select[@name='currency']/option[text()='Pesetas']"   xpath = "//select[@name='currency']/option[text()='Pesetas']"
   o = driver.find_element_by_xpath(xpath)   o = driver.find_element_by_xpath(xpath)
 +  o.click()
informatica/linux/selenium/ejemplos.txt · Last modified: 2020/07/04 00:22 by jose