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?
Ask general questions here.
2 posts • Page 1 of 1
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
This is often a problem in web sites.For any text box in the internet explorer, the controlname and control id are same.
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:
2. Use indexes to get/set the value of the text.
Code: Select all
Element editFields = Element.FindChildren(Role.Text);