In internet explorer, all textboxes have same values.. why?

Ask general questions here.
aishwarya
Posts: 4
Joined: Mon Aug 11, 2008 7:59 am

In internet explorer, all textboxes have same values.. why?

Post by aishwarya » Mon Aug 11, 2008 8:15 am

Hi,
We use Ranorex Pro 1.3 for the automation test of our product. It works well.

But have a small issue. For any text box in the internet explorer, the controlname and control id are same. (Classname:Internet Explorer_Server and Controlid: 0 ,Role: Text).

We are not able to differentiate between the text boxes with the controlname and roles.

Is there any solution for this problem?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Mon Aug 11, 2008 3:52 pm

For any text box in the internet explorer, the controlname and control id are same.
This is often a problem in web sites.

You can automate web pages much easier with the Ranorex.Web namespace. Unfortunately you need the Premium edition for this.

I would suggest to automate applications with the Ranorex namespace and web pages with the Ranorex.Web namespace.

But you can also use the following workaround, if the indexes of the text boxes remains the same:

1. Read all text boxes with Element.FindChildren:

Code: Select all

Element[] editFields = Element.FindChildren(Role.Text);
2. Use indexes to get/set the value of the text.

Jenö
Ranorex Team