the dinamic xpath of WebElement (it contain my searching text) is:
‘//*[contains(text(),“палаточный кемпинг”)]’
i need to get the static xpath of WebElement(it contain my searching text) using some function/
and end of all i will get this xpath:
//*[@id=“wpt-18163886_611”]/div[1]
It is quite difficult to build XPath from the WebElement or TestObject. Is static xpath format always the same? I mean, element with id followed by first div element.
Show me please the part of HTML code for the element you want to locate. Because you may be able to get absolute XPath of the WebElement, but it is quite dirty solution.