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..
--- Zeljko Filipin <[EMAIL PROTECTED]> wrote:
> 1. go to command prompt2. type
> ruby my_watir_script.rb > my_watir_script_results.txt
> 3. all output will be stored in my_watir_script_results.txt4. you can
> do it even shorter
> my_watir_script > my_watir_script_results.txt
> For more information, visit
>
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx
> or google for something like "command prompt redirect output to file"
> On 2/22/06, Kiran Kumar.. <[EMAIL PROTECTED]> wrote:> Hi,>> Where
> and how i can save the results got from running the Watir>
> scripts..Please help me out>> Regards> Kiran..>>
> __________________________________________________> Do You Yahoo!?>
> Tired of spam? Yahoo! Mail has the best spam protection around>
> http://mail.yahoo.com>
> _______________________________________________> Wtr-general mailing
> list> [email protected]>
> http://rubyforge.org/mailman/listinfo/wtr-general>
>
>
--http://www.testingreflections.com/blog/3071http://iskusivac.blog.hr/
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general