Tim,

Sorry to answer with another question.
I was implementing the solution you pass to me, but i found something I 
cant resolve.
When I pass the browser.goto("javascript:openWin(i)") command, the 
script will not "close" until the browser is closed.
It´s get stucked in the line of the command. So, if I pass some 
button.click command, it will not work.

What i´m doing wrong?


* Gustavo Godoy
Brasil
*


Tim Koopmans wrote:
> Ok, think I follow. So fire_event won't work for you here as you have
> non-standard javascript events defined.
>
> I've cleaned up and provided a simplified version of the html here:
> http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0020.html
>
> Then, using the .goto method, I am simply calling the javascript
> function direct (that mmaction would normally call) as follows:
> @b.div(:id, "menuItem1").flash # pass
> [EMAIL PROTECTED](:id, "menuItem1").fire_event("mmaction") # fail
> #Previous action will cause WIN32OLERuntimeError: fireEvent Invalid
> argument.
>
> @b.goto("javascript:openWin(2)") # pass
>
> So let me know if that last call is suitable. You may want to enum the
> function call into a variable using regex (if it is dynamic/changing)
>
> Regards,
> Tim Koopmans
>
>
> >
>   

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

Reply via email to