Page 1 of 1

No "Name" attribute for input type="text"

Posted: Wed Oct 10, 2007 1:13 am
by sahoko
This text field control has the unique id property like this:

<input type="text" style="width:235px;" class="ig_ClaymationEdit igtxt_ClaymationEdit ig_e06f37d7_r1" id="igtxtctl00_ContentPlaceHolder1__CampaignPanel_igTxtCampaignName" />

But when I look at the attributes of this element with RanorexSpyPro, the "Name" attribute is blank.

All the text field controls in this page have the id property filled with a unique value, but the spy is not using the id property to identify the elements.

Is this a bug? If so, what is the workaround for this problem?

Posted: Wed Oct 10, 2007 6:30 pm
by Support Team
You cannot find an element in a web page by Id at the moment.
We will release the Web Testing extensions only in V1.4.

But you can find an element by Role and Location with the Element.FindChild() function.

Jenö
Ranorex Support Team

Posted: Wed Oct 10, 2007 6:36 pm
by sahoko
Hi Jeno,

Thank you for your quick response. When I look at this element in the spy, I get the "client position" and "screen position". Which value can I use as location?

Posted: Wed Oct 10, 2007 6:58 pm
by Support Team
I get the "client position" and "screen position". Which value can I use as location?
The client position.

Jenö
Ranorex Support Team

Posted: Thu Oct 11, 2007 8:22 pm
by sahoko
When I move the position of IE, the client position changes... Is there anything else that I can use in order to uniquely identify the object beside the client position?

I need to run my automation on different test clients, but if the client location changes if I move the position of IE, the script wouldn't be reliable.

Posted: Thu Oct 11, 2007 9:43 pm
by Support Team
The client position is the position of the element, relative to the upper-left corner of the control.
Normally it remains the same if you move the window, if not then you should implement a workaround.

Please check the Element.FindValue, Element.FindChildren functions.

Jenö
Ranorex Support Team