given is the following html code:
<div> <button type='submit'> <p>variable text</p> </button> </div>I need to reach the button by first getting the text from the p tag and then go back to the button, so I'm using this xpath:
Code: Select all
//div//p[@innertext=$myVariableText]/parent::button
Code: Select all
//div//p[@innertext='variable text']/..
Code: Select all
//div//p[@innertext='variable text']/parent::*...
This is right, it's an element of the type ButtonTag and not Button. But the spy also shows a button and not a buttontag in the browser.
A similar thread was already created in 2016: https://www.ranorex.com/forum/6-0-2-htm ... t9913.html
Maybe with this example you can check if this is a bug?
Ranorex Version is 9.0.1.
Best regards,
Rafael