From: Raj pal Date: 2013-03-28T16:02:48+09:00 Subject: Re: question on watir hi, I redefined your code according to my necessity, [:text_fields, :select_lists, :checkboxes].each do |type| $browser.send(type).each do |i| if type.to_s[0..-2].eql?('text_field') puts "$browser.text_field(:id,'#{i.id}').set('rajagopalan')" elsif type.to_s[0..-2].eql?('select_list') puts "$browser.select_list(:id,'#{i.id}').select('RAJ')" elsif type.to_s[0..-3].eql?('checkbox') puts "$browser.checkbox(:id,'#{i.id}').set" end end end Now, it actually takes all the text box first and then it goes to the select_list and then it goes to the checkbox. But I want to be an order the way they are situated in screen, Is it possible to get like that? RAJ -- Posted via http://www.ruby-forum.com/.