I think you can do a right click by

ie.button(:id, 'xx').fire_event('onContextMenu')

if that doesnt work, this might be what you need to help get the coordinates
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/getclientrects.asp

http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/textrectangle.asp

http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/clienttowindow.asp?frame=true


----- Original Message -----
From: Vamsee Krishna M <[EMAIL PROTECTED]>
Date: Monday, April 2, 2007 3:20 am
Subject: [Wtr-general] HTML element physical location on screen.

> Hi,
> 
> Is it possible get physical location of an html element relative 
> to screen ?
> Since watir can't drive the mouse, I want this location so that I 
> can go to that location and do a physical click through a 
> thridpary tool like autoit.
> I don't want to do it through fire_event since it can't fire right 
> mouse click events.
> 
> Thanks.
> _______________________________________________
> 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