Posts: 26
Threads: 8
Joined: Jun 2009
Reputation:
0
06-27-2009, 05:38 PM
I need to write a code using descriptive prog to get all the edit boxes on a page. and now have to set value for the 6 - 10th edit boxes object to a particular value.
That is e.g from the set the edit box value to 7, same for the 8th, 9th and 10th box.
Can anyone help please.
Thanks
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
07-02-2009, 06:17 PM
Modified :
Code:
Set oEdit = Description.Create()
oEdit("micclass").value = "WebEdit"
set Childobj = Browser("").page("").ChildObjects(oEdit)
For I = 6 to 10
Childobj(I).Set "Test value"
Next
I hope your criteria is only to fill the edit boxes from 6th to 10th.
UrsVinod : There could be 30 edit boxes, so there is no need to loop through all of them and set the same value. Just the required ones only.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
07-03-2009, 11:01 AM
Laura -
thread Hijack. Please open a new post.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.