Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automate same input for multiple input box
01-14-2010, 08:09 PM
Post: #1
Automate same input for multiple input box

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
Find all posts by this user
Quote this message in a reply
01-15-2010, 12:40 AM
Post: #2
RE: Automate same input for multiple input box
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

Never limit your challenges , Challenge your limits
Visit this user's website Find all posts by this user
Quote this message in a reply
01-15-2010, 02:05 AM (This post was last modified: 01-15-2010 02:06 AM by noopur.)
Post: #3
RE: Automate same input for multiple input box
(01-15-2010 12:40 AM)sreekanth chilam Wrote:  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

Thanks Sreekanth for this answer.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)