Ranorex

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

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
sahoko



Joined: 09 Oct 2007
Posts: 9

PostPosted: Wed Oct 10, 2007 2:13 am    Post subject: No "Name" attribute for input type="text"
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?
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 435

PostPosted: Wed Oct 10, 2007 7:30 pm    Post subject:
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
Back to top
View user's profile Send private message Visit poster's website
sahoko



Joined: 09 Oct 2007
Posts: 9

PostPosted: Wed Oct 10, 2007 7:36 pm    Post subject:
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?
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 435

PostPosted: Wed Oct 10, 2007 7:58 pm    Post subject:
Quote:
I get the "client position" and "screen position". Which value can I use as location?

The client position.

Jenö
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
sahoko



Joined: 09 Oct 2007
Posts: 9

PostPosted: Thu Oct 11, 2007 9:22 pm    Post subject:
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.
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 435

PostPosted: Thu Oct 11, 2007 10:43 pm    Post subject:
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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum