Object identification with the same hierarchy

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
rholdberh
Posts: 27
Joined: Mon Jan 13, 2014 3:45 pm

Object identification with the same hierarchy

Post by rholdberh » Tue May 13, 2014 10:09 am

Hi,
i have a small problem with object identification: My structure is:

<span class="set">
<span class="requiredKey" title="Application">Application</span>
<span class="value">
<input type="text" class="Textbox ""></span>
</span>

So, input type in the span class "value" should be identified by title "Application" in previous span class.

Any soultion? i ve tried different combinations with Axis declaration but it didnt help for me

mzperix
Posts: 137
Joined: Fri Apr 06, 2012 12:19 pm

Re: Object identification with the same hierarchy

Post by mzperix » Tue May 13, 2014 11:18 am

Hi rholdberh,

here is an xpath:

Code: Select all

\\span[@title='Application']\following-sibling::span[@class='value']\input
here is the blog post where I got the idea: http://www.ranorex.com/blog/ranorexpath ... fy_Sibling

here is a user guide on ranorexpath:

http://www.ranorex.com/support/user-gui ... xpath.html

Best Regards,
Zoltan