Page 1 of 1

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

Posted: Mon Aug 11, 2008 8:15 am
by aishwarya
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?

Posted: Mon Aug 11, 2008 3:52 pm
by Support Team
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