-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of murali
Sent: 10 July 2007 07:42 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] need help on Data Driven
Hi every one,
iam facing problem with the data driven. have glance of my
code and let me
Try the following
Category is holding an array and not just a single variable. Thereby each
value needs to be picked up and then assigned.
category.each do |cat|
ie.text_field(:name,ctl00$ContentPlaceHolder1$txtCategory).set(cat.to_s)
___
Thanks it is working fine.
thanx for ur help
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
The error pretty much tells you the story. You're taking an array: category=
worksheet.Range('a2:a4') ['Value'] and pushing it into a method that
accepts a string. If you want the whole array to be a string then convert it
to a string:
category=worksheet.Range('a2:a4') ['Value']
category.to_s
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)