From: Joel Pearson Date: 2013-04-04T18:58:31+09:00 Subject: Re: question on watir Raj pal wrote in post #1104349: > if i have to automate 1000field, then it would 4000 lines of > code, Is there any way could I able to put into the loop. My problem is, > i couldn't able to synchronize the id and value.Do you have any solution > for this? Something like this should work. 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 -- Posted via http://www.ruby-forum.com/.