hi,
require 'rubygems'
require 'watir-webdriver'
require 'win32ole'
xl = WIN32OLE.new('Excel.Application')
xl.visible = true
xlbook = xl.workbooks.open('C:\Suvo\ControlFile.xls')
xlsheet = xlbook.worksheets(1)
xlsheet.Select
count = xlsheet.Range('A1').currentRegion.Rows.count
$i = 2;
$num = count;
val = 10;
browser2 = Watir::Browser.new :ie
setup(browser2,$i)

        def setup (iebro,val)
                iebro.goto xlsheet.Range('C'"#val").value
                   end


i am getting error like:
chrome.rb:: undefined method `setup' for main:Object (NoMethodError)

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to