Using focus did not help either but I found a way to do it using
AutoIt.

require 'win32ole'

z=WIN32OLE.new("AutoItX3.Control")
z.mousemove(500,500)

For now I am using set values while I figure out how to get them using
AutoIt.

On Jan 27, 2:14 pm, Tiffany Fodor <[email protected]> wrote:
> Hmmm, I've never seen a problem like that.
>
> Does setting the focus on your link help?
>
> $browser.link(:href, url).focus
>
> -Tiffany
>
> On Jan 27, 2:51 pm, JesseQA <[email protected]> wrote:
>
> > Hi Tiffany,
>
> > Thanks for the reply.
>
> > The mouseover is a javascript event.
> > Here is what I am using now:
>
> > $browser.link(:href, url).fireEvent("onMouseOver")
>
> > When using the IE developer toolbar the only attributes I see for each
> > the link are:
> > href which has the url as the value and test_com with a value of
> > [object Object]. test_com is what gets added by my js.
>
> > If my mouse is anywhere inside the browser it works fine but if it is
> > not then the events will not fire.
>
> > Here is what the html looks like:
>
> > <html>
> > <head>
> > <title>testq</title>
> > </head>
> > <body>
> > <a href="http://www.mytesturl.com";>testurl</a><br>
> > <a href="http://www.mytesturl2.com";>testurl2</a><br>
> > <a href="http://www.mytesturl3.com";>testurl3</a><br>
>
> > <script type="text/javascript" src="/js/myscript.js"></script>
> > </body>
> > </html>
>
> > On Jan 27, 12:14 pm, Tiffany Fodor <[email protected]> wrote:
>
> > > Hi Jesse!
>
> > > Is the event associated with the mouseover a javascript event?  If so,
> > > you should be able to see the event details with IE Developer Toolbar
> > > and then your code should look something like this:
>
> > > ie.text_field(:name, 'TextFieldName').fireEvent('EventName')
>
> > > Hope this helps!
>
> > > -Tiffany
>
> > > On Jan 27, 12:03 pm, JesseQA <[email protected]> wrote:
>
> > > > Is there a way to force the mouse pointer into the browser window that
> > > > was opened with watir? I need to fire some events on mouseover. If the
> > > > pointer is not inside the browser window the events do not seem to
> > > > fire.
--~--~---------~--~----~------------~-------~--~----~
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