Well, I am sorry to report it is still failing.  However I sure do
appreciate the help with this.  I was tring to cut my teeth on this
before I start the real project of automating a PayPay functions.

But, I am just not getting it.  Maybe I will try my luck on the PayPal
project.  Has anyone automated the Capture button on PayPal?

As requested here is my yahoo mail training script;

require 'firewatir'
include FireWatir
ff=Firefox.new
ff.goto("http://mail.yahoo.com";)
ff.text_field( :name,"login" ).set("username" )
ff.text_field( :name,"passwd" ).set("password" )
ff.button(:value, "Sign In").click
# id="global_compose_top"
#ff.button(:value, "New").click
# failing
#ff.cell(:xpath, "//td[contains(text, 'New')]/").click
#failing
#ff.cell(:xpath, "//td[contains(text, 'New')]/").click
#failing

ff.cell(:xpath, "//t...@id='compose_button_label']/../").click

#ff.link(:text, "Sign Out").click
#ff.close

Here is the error log from the last attempt;

>ruby YahooMail_Test.rb
C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
MozillaBaseElement.rb:967:in `assert_exists': Unable to locate
element, using :name,
"login" (Watir::Exception::UnknownObjectException)
        from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
htmlelements.rb:1333:in `set'
        from YahooMail_Test.rb:9
>Exit code: 1

I was able to logged in, and the page loaded just fine but the "New"
button was never clicked.  So I don't know what to make of the error
message, it was logging me in.
Could it be that Watir, ended before the button click was registered
by Fire Fox ?


Carl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to