What I do:
1 - Goto calendar URL
2 - Click on a time on a day
3 - Name the event and click on "Create Event"
4 - Click on the newly created event
5 - Click on the "Options" menu on the right side

Results:
Get an error page

6 - Close the browser, and view the output of watirmaker

I'm trying to automate some stuff at work on a web app, and I get
similar statements. I wanted to reproduce some where accessible to
everyone, so I chose Google Calendar.

Here is the output of the watirmaker.rb script:


##//////////////////////////////////////////////////////////////////////////////////////////////////
##
## Watir script recorded by WatirMaker.
##
##//////////////////////////////////////////////////////////////////////////////////////////////////

#requires
require 'watir'

#includes
include Watir

ie = IE.new

ie.goto( 'http://www.google.com/calendar' )
# DEBUG: Unsupported onfocusout tagname BODY (:index, '8')
ie.text_field( :id, 'Email' ).set( USERNAME )
ie.text_field( :id, 'Passwd' ).set( PASSWORD )
ie.checkbox( :name, 'PersistentCookie' ).clear
ie.button( :name, 'null' ).click
# DEBUG: Unsupported onfocusout tagname HTML (:index, '0')
# DEBUG: Unsupported onfocusout tagname HTML (:index, '1')
unknown property or method `document'
    HRESULT error code:0x80020006
      Unknown name.
# DEBUG: Unsupported onfocusout tagname BODY (:index, '11')
# DEBUG: Unsupported onclick tagname DIV (:id, 'r30')
# DEBUG: Unsupported onfocusout tagname DIV (:id, 'r30')
ie.text_field( :id, 'dragEventSubject' ).set( 'Test Event' )
ie.document.all[ '730' ].click
# DEBUG: Unsupported onfocusout INPUT type button
# DEBUG: Unsupported onfocusout tagname BODY (:index, '11')
# DEBUG: Unsupported onfocusout tagname DIV (:index, '660')
unknown property or method `document'
    HRESULT error code:0x80020006
      Unknown name.
# DEBUG: Unsupported onfocusout tagname TD (:id, 'maincell')
ie.document.all[ '906' ].click
# DEBUG: Unsupported onfocusout tagname HTML (:index, '1')
# DEBUG: Unsupported onfocusout tagname BODY (:index, '6')


Any help would be greatly appreciated. :)

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

Reply via email to