Aidy,

I'm guessing and not strong on Javascript, but might it be the lack of  
a semi-colon after 'return true'?

Best wishes,

Alex Collins

On 2 Jun 2009, at 17:03, aidy lewis wrote:

>
> Hi,
>
> I am trying to override a js confirm in FireWatir:
>
> $jssh_socket.send("window.confirm=function(){return true};\n", 0)
> read_socket
>
> Without success, has anyone managed to do this?
>
> Aidy
>
> >


--~--~---------~--~----~------------~-------~--~----~
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