Hi every one, iam facing problem with the data driven. have glance of my code and let me know where i did mistake.
excel= WIN32OLE::new('excel.Application') workbook=excel.Workbooks.Open('D:\Documents and Settings\mmopur\Desktop\IPE Aut\test.xls') worksheet=workbook.Worksheets(1) worksheet.Select excel ['Visible'] #worksheet.Range('a2') ['Value'] category=worksheet.Range('a2:a4') ['Value'] line = '1' while worksheet.Range("a#{line}")['Value'] line.succ! ie.text_field(:name,"ctl00$ContentPlaceHolder1$txtCategory").set(category) when i run the script iam getting the errors as belo mentioned c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3431:in `+': can't convert Array into S ring (TypeError) from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3431:in `doKeyPress' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `each' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `doKeyPress' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3393:in `set' from D:/Documents and Settings/mmopur/Desktop/IPE Aut/datadriven.rb:59 plz look into that and do needful Regards Murali _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general