st = ""
5.times do |x|
st << "Joe" + x.to_s
end
ie.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 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
http://forums.openqa.org/thread.jspa?threadID=3436&messageID=9610#9610
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
--
"I am the most humble person in the world!"
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
