Get full XPath from partial
问题 I am using selenium with perl and have label on page, to access this label i have following xpath: //*[text()='some here'] , the problem that a need to get full xpath of this element, like /html/body/table/tr/..../any other/and other/ , is there is any selenium method or perl function ? looking for perl solution or any other working things. thanks 回答1: looking for perl solution or any other working things This XPath 2.0 expression: string-join(for $node in ancestor-or-self::node() return