Thank you Jesus, i figured out the answer for that issue. I used regular
expressions and it worked perfectly. The code is shown below.


Browser=$b.table(:id, /Grid/)
$Browser.rows.each do |row|
 if (row[4].text =~  /Acct(.*) /)
   puts "Dropdown selected"
  row[5].select_list(:id, /dispositionList/).select "Value from
dropdown"
end
end

-- 
Posted via http://www.ruby-forum.com/.