[Wtr-general] JavasScript Menu .click not working

Attebery, Bill BAttebery at archstonesmith.com
Fri Oct 6 09:58:50 EDT 2006


Not sure why that would happen, the syntax looks identical.

But one thing to note is the way I've done this in the past and there's
a couple posts on the archives for this is to create the window object
as such:

window=ie.ie.document.parentWindow and then use window.execScript

So as you can see it seems that I have an extra layer here so to speak -
ie.ie...  I don't see that in your statements.

 

________________________________

From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Michael Ehrich
Sent: Friday, October 06, 2006 12:15 AM
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] JavasScript Menu .click not working

 

Hi bill, 

 

thx for the help. I tried the execScript method but i got weird error.

 

When i checked it with
ie.frame("mainFrame").document.parentWindow.execScript("alert('TEST');")

It worked perfect but then i used
ie.frame("mainFrame").document.parentWindow.execScript("myfunction('TEST
');")

And watir told me

 

Z:/Watir/scripts/frame.rb:44:in `method_missing': execScript
(WIN32OLERuntimeError)

 

Maybe you have an idea ? im done after checking the whole Watir Archieve
for similar problems and other local

tests. My boss is already looking for a similar software which is able
to handle this :/

 

best regards

michael ehrich

 

________________________________

Von: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] Im Auftrag von Attebery, Bill
Gesendet: Donnerstag, 5. Oktober 2006 18:54
An: wtr-general at rubyforge.org
Betreff: Re: [Wtr-general] JavasScript Menu .click not working

 

Sounds like you may be encountering the same thing I found when trying
to work with the google ajax tree - seems that the click event is
actually being handled at the window level and not the browser level (or
something along those lines) - so using onClick or .click through water
isn't the same.

 

 

 

http://www.mail-archive.com/wtr-general@rubyforge.org/msg04974.html

 

 

Hi,

 

im not sure if my posts actually reach the mailinglist cuz i did not
seem to get any answers so far.

I'm still messing with the problem described in that post
http://www.mail-archive.com/wtr-general%40rubyforge.org/msg05416.html

maybe someone can help me or maybe someone can tell me where i can
report that bug. Because for me it seems like

this is a bug. No error is reported but i still only get a little blink
and no click which is very weird cuz i tried a simple

version of that menu myself and it worked pretty well. So ist maybe a
frame bug or i dont know. Doesnt look like ist

right.

 

Best regards

Michael Ehrich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061006/fd332fec/attachment.html 


More information about the Wtr-general mailing list