How can I make my object names dynamic using .Net
Here is my problem
I have an object which is a text box called Text_1_n1_Order_demand which I click on and enter a value from a datapool
I can potentially have 10 of these text boxes
Rather than have a seperate piece of code for each specific text box I want to dynamically input the text box number
i.e Text_1_n[x]_Order_demand so that [x] is some variable value 1-10.
In robot it was simply a matter of Text_1_n&"x"&_Order_demand
however you can't do that with the objects in RFT as they are protected functions.
Re: How can I make my object names dynamic using .Net
You will probably have to use the find() method to find your test object. Get the parent window, then perform a find on that window and use a property of atDescendant("name", "Text_1_n" + x + "_Order_demand").
See the following article for detailed info: