informatica:linux:selenium
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
informatica:linux:selenium [2019/10/17 11:46] – jose | informatica:linux:selenium [2019/10/17 12:14] – jose | ||
---|---|---|---|
Line 374: | Line 374: | ||
hijo.click() | hijo.click() | ||
</ | </ | ||
+ | |||
+ | Si a partir de un elemento queremos seleccionar el padre:\\ | ||
+ | Seleccionamos el elemento: | ||
+ | xpath='// | ||
+ | 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: 2022/12/27 09:08 by jose