Path not fully recognized

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
anantha.krishnan
Posts: 6
Joined: Tue Jul 09, 2013 4:23 am

Path not fully recognized

Post by anantha.krishnan » Thu Oct 24, 2013 10:52 am

Hi,
I have been using the tool for nearly three months. I have encountered issues while recognizing some of the controls. we use 3rd party controls called infragistics

I see question mark in between the path

/form[@controlname='frmMain']/?/?/form[@controlname='frmProdManager']/?/?/element[@controlname='ProductID']

It does not occur for few controls. Can someone explain ways to rectify it. It is the same behaviour using spy and track.

Regards,
Anantha Krishnan.K

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Path not fully recognized

Post by krstcs » Fri Oct 25, 2013 1:53 pm

That is intended behavior. A "?" means that the element in that position is OPTIONAL.

If you have 2 "?"s then the following element can be 0, 1, or 2 levels below the last specified parent.

So for the following, the XPath would be:

-dom
--body
---table
----tbody
-----tr
------td

dom\body\table\?\?\td

This RanoreXPath would find the td even if there was no tbody\tr.
Shortcuts usually aren't...