Re: [Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Michael Bolton
>My requirement is that, I want to print some text in 5 times in one text box like "User name". I want to do with for loops but I'm not able do that. Give me suggestion if you have any sense about that require 'watir' include Watir ie = IE.start("http://www.google.ca";) the_field = ie.text_field(:

Re: [Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Rand Thacker
Well, you can do something like:st = ""5.times do |x|  st << "Joe" + x.to_sendie.text_field(:name, 'username').set(st)Results is the text_field called username being set to "Joe0Joe1Joe2Joe3Joe4" Hope that gives you some direction.Rand.On 8/10/06, Mayank <[EMAIL PROTECTED] > wrote:My requirement is

Re: [Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Charley Baker
I'm not sure I understand your requirement or why you can't do a for loop, here's a quick stab in the dark: ie.text_field(:name, 'user name').set('name' * 5)More information about your situation may get a different and possibly better answer. -CharleyOn 8/10/06, Mayank <[EMAIL PROTECTED]> wrote: M

Re: [Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Chris McMahon
On 8/9/06, Mayank <[EMAIL PROTECTED]> wrote: > My requirement is that, I want to print some text in 5 times in one text box > like "User name". I want to do with for loops but I'm not able do that. Give > me suggestion if you have any sense about that C:\ruby\doc\ProgrammingRuby.chm __

[Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Mayank
My requirement is that, I want to print some text in 5 times in one text box like "User name". I want to do with for loops but I'm not able do that. Give me suggestion if you have any sense about that - Posted via Jive Forums htt