I wonder how it is possible to get the FULL XPATH from a repository element (not the RxPath).
RxPath identified in Spy or by Ranorex recording:
Code: Select all
/dom[@domain='www.ranorex.com']//div[#'rx-header-sticky-content-wrapper']//img[@alt='Ranorex Logo']
Code: Select all
/html/body/header/div/div[1]/nav/div/div[1]/div/div/div[1]/a/img
The only (best) possibility I found was to use document.evaluate() but it complains when inputting RxPath that it is no valid Xpath, this seems to be related to the hash '#' symbol. When replaced by 'id=' the path seems to be valid, but the element is not found with the RxPath.
The Full Xpath copied from Chrome devtools works indeed.
thanks!