On Thu, Feb 14, 2013 at 10:58 AM, <umeshkhan...@gmail.com> wrote:

> 10.times do
> ie.link(:text,"Quick Message").click
> ie.text_field(:name,"edit_row[quick_msg]").set"Test message from sara for
> testing "
> ie.select_list(:class,"select-display-100").select_value"Green"
> ie.select_list(:name,"alert_device_options").select_value"28,1"
> ie.checkbox(:class,"checkall").set
> ie.div(:class => "button", :text => /Send Quick Message/ ).a.click
> end
>

Try this:

(1..10).each do |i|
  ie.link(:text,"Quick Message").click
  ie.text_field(:name,"edit_row[quick_msg]").set"Test message from sara for
testing #{i}"
  # the rest of the code
end

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to