Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automate same input for multiple input box
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi

How many lines of code do you required to write down for feeding same input to 50 text boxes.
This 50 Text boxes are not of an Array type.
I think we can write it down with the help of the for loop
but how can we got about it. do we need to use Index of Text box in foor loop and increment it by 1.


Thanks in advance for help
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi Noopur,

Let me clear you with an example of Editbox in a Web Application.

Code:
set textbox_obj=Description.Create
  textbox_obj("micclass").Value="WebEdit"
  Set obj=Browser(...).Page(..).ChildObjects(textbox_obj)
  For i=0 to obj.count-1
      obj(i).Set "Sample Input"
  Next


In the same way, you can implement in other environments as well Smile
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
Thanks Sreekanth for this answer.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)