>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(:
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
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
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
__
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