User Tools

Site Tools


informatica:linux:selenium

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
informatica:linux:selenium [2019/10/17 13:46]
jose
informatica:linux:selenium [2019/10/17 14:14] (current)
jose
Line 374: Line 374:
 hijo.click() hijo.click()
 </​code>​ </​code>​
 +
 +Si a partir de un elemento queremos seleccionar el padre:\\
 +Seleccionamos el elemento:
 +  xpath='//​label[text()="​AMA DE CASA"​]'​
 +  obj = driver.find_element_by_xpath(xpath)
 +Y a partir de ese elemento el padre:
 +  padre=obj.find_element_by_xpath("​./​.."​)
  
  
  
  
informatica/linux/selenium.txt ยท Last modified: 2019/10/17 14:14 by jose