From: Raj pal Date: 2013-04-05T20:09:55+09:00 Subject: Re: question on watir hi I used your code, my_hash = { User1=> 'Pass1', User2=> 'Pass2' } my_hash.each do |username, password| $browser.text_field(:id,'Email').set(username.to_s) $browser.text_field(:id,'Passwd').set(password) #Other stuff here... end First of all it throws the error in User1:pass1 and then I changed into User1=>'Pass1' Now it's throw an error C:/work1/LnTIDITAutomation/Main/hi.rb:48: uninitialized constant User1 (NameError) and then I changed this into my_hash = { User1=> 'Pass1' User2=> 'Pass2' } Now it is applying. But I want to know whether it's working in higher version of ruby, because you might have applied the code RAJ -- Posted via http://www.ruby-forum.com/.