Hey Aidy,

   The back method does a straight call to ie's GoBack method, and according to the comments throws that exception only if for some reason it can't go back. If it is going back then you might want to swallow the exception and add an assert for an element on the page that you hoped to go back to. I don't see any inherent reason why it's throwing the exception, but that's just from a quick look.

-Charley

On 8/10/06, Adrian Lewis <[EMAIL PROTECTED]> wrote:

HI,

The version of watir is shown in the err msg below. The browser is
definitely going back to the previous HTML page, yet I
receive this exception:

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1054 /./watir.rb:1500:in
`method_missing': GoBack (WIN32OLERuntimeError)

Should I catch the exception or choose a different method?

(sorry if this has been briefed, but I cannot access the internet at the
moment)

Cheers

Aidy



---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or otherwise protected from disclosure.
If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system.
If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

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

Reply via email to