QTP Forums

Full Version: Scripting Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
can any one tell me the solution about this problem whit in minimum line of code....
we have 50 text fields in a application form and we want to insert the same data in all but all 50 fields have the different properties.
Hi,
You want to fill out ALL text boxes on screen or few of them?
Refer the below example & implement accordinglySmile

Code:
Set Edt_obj=Description.Create
Edt_obj("micclass").value="WebEdit"

Set x=Browser("..").Page("..").ChildObjects(Edt_obj)
For i=0 to x.count-1
    x(i).Set "sample data"
Next
Reference URL's