Control adapter x path properties

Ranorex Spy, Recorder, and Studio.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Control adapter x path properties

Post by atom » Wed May 05, 2010 4:33 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Control adapter x path properties

Post by Support Team » Thu May 06, 2010 5:38 pm

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
Attachments
spy1.png
spy1.png (13.48 KiB) Viewed 896 times
.
Image