[wtr-general] Re: Right Click and Element Script

2009-10-12 Thread Alan Baird
Sorry, I missed this reply. You should not need those requires, the script works fine without them. If you have further issues, please send me the stacktrace of the error. Also, you may need to play with the offsets to get the mouse in the element space. Alan On Tue, Sep 29, 2009 at 11:24 PM,

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi pallavi, Pls add and try again May be try this all possibilities require 'rubygems' require 'watir' require 'pp' require 'win32ole' require win32ole_pp require 'watir/WindowHelper' Awaiting your reply... Thanks On Tue, Sep 29, 2009 at 3:17 PM, Pallavi Sharma write2pall...@gmail.comwrote:

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Pallavi Sharma
Hey Ravee Thanks a ton, maybe some one can update the stuff there at tha link, it will surely help. by the way: win32ole_pp throws an error so i removed it. One more thing i will be using this on a div containg table, and its table cell will it work?? Thanks Pallavi On Tue, Sep 29, 2009 at

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi pallavi, Yes. Def it will work.. If not then pls paste ur html code here. Thanks P.Raveendran On Tue, Sep 29, 2009 at 4:10 PM, Pallavi Sharma write2pall...@gmail.comwrote: Hey Ravee Thanks a ton, maybe some one can update the stuff there at tha link, it will surely help. by the way:

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Raveendran P
Hi Pallavi, May be the focus missing here. So please adjust the changes here and try it. (its not a exact solution but it may be help some times) # Windows API constants INPUT_MOUSE = 0 MOUSEEVENTF_LEFTDOWN = 0x0002 MOUSEEVENTF_LEFTUP = 0x0004 MOUSEEVENTF_RIGHTDOWN = 0x0008

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Alan Baird
Pallavi - I've tested the code at http://wiki.openqa.org/display/WTR/Right+Click+an+Element a lot and I'm pretty sure it works. If you run the code that's in the box it should work. I would try that first. You should not have to do any additional requires to make it work (since win32api is

[wtr-general] Re: Right Click and Element Script

2009-09-29 Thread Pallavi Sharma
Hi Alan Thanks for the reply, i saw your post but until i made these require 'rubygems' require 'watir' require 'pp' require 'win32ole' require win32ole_pp require 'watir/WindowHelper' require statements i was getting the Name Error, which was over after i included them all. I don't know the