Page 1 of 1

Control adapter x path properties

Posted: Wed May 05, 2010 4:33 pm
by atom
Hiya

In Ranorex Spy, I see my element has the Control adapter
Under the Control adapter i see:

- Type
- TypeName

However when i use these in ranorex xpath they dont work:

/control[@type=' ...']

I have to modify it to:

/control[@controltype='...']

Why is that?
Thanks

Re: Control adapter x path properties

Posted: Thu May 06, 2010 5:38 pm
by Support Team
Hi atom,

In the overview, the attributes are displayed in a short form (the prefix is removed if it is the same as the capability name).

The RxPath requires the use of the full attribute name, because the short form is not unique. In the "Detail" tab, the full name is used. Also, if you use the autocompletion feature in the RxPath editor, it suggests the correct name.

I agree that it is a bit confusing, though :)

Michael
Ranorex Team