i have this element
element = driver.find_element_by_xpath("//*[contains(text(), '/cargas')]")
that search text in html and select one element suppose the element has the xpath
//*[@id="main"]/div[3]/div/div[2]/div[2]/div[11]
is there a way to return div's in this element eg:
element cd.. cd..
//*[@id="main"]/div[3]/div/div[2]
and how i get the full xpath from element