Kiran,

Since your script references an xls file that we don't have, none of us are going to be a be able to get it to work. Either send the file, or better yet, isolate your problem to a single script that you can send us.

We also don't know what "doesn't work" means. Are you getting error messages? What are they?

Bret

On 2/22/06, Kiran Kumar.. < [EMAIL PROTECTED]> wrote:
Hi,
Thanx for the same. But i can write into a file only the output i.e
what and all i specify in puts, but i need the error message also be
written in the file. How to achieve this.

I'm unable to maximize the window.
Here with i'm sneding a piece of code which has the maximize function
in it.Please look into it and correct the same..


require 'watir'   # the watir controller
include Watir
# open the IE browser
ie =IE.new

require 'win32ole'
excel = WIN32OLE::new('excel.Application ')
workbook = excel.Workbooks.Open('E:\Watir
Examples\Kiran\gX_lgn_td1.xls')
worksheet = workbook.Worksheets(1) #get hold of the first worksheet

   #variables:
   test_site = worksheet.Range('a1')['Value']

   # Opens the site.
  ie.goto(test_site)

  #maximizing the browser
    ie.maximize( )

Regards
Kiran..

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to