is the login page set to remember you? or is there a recent session or
cookie hanging around?  I don't think it's ACTUALLY logging you in, I
think the browser is just coming up that way.

did you try executing these steps one by one in an IRB session?

The error you are getting would indicate it had a problem identifying
something by the name of login.. that's far above the step where you
think it's failing.

Is there white space in your real script that's not shown below, the
error seems to come from line number 9 which is a comment in the
script below, and obviously cannot cause an error  whatever is
actually on line 9 in your script (I suspect the attempt to set the
login name) is what failed.

On Apr 9, 4:52 pm, cboudreau <> wrote:
> 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.goto("";)
> 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
>, "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
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to