Vapir is a fork of Watir which, among many other improvements, correctly
performs click actions including both the relevant events (mousedown,
mouseup, and click) as well as setting correct information on the events
such as mouse button, mouse position, etc. see http://vapir.org/

-Ethan

2010/10/27 jpapa <jp...@sbcglobal.net>

> That did it!
>
> I'm thrilled. Thanks so much for posting that. I never would have come
> to that solution on my own.
>
>
>
> On Oct 27, 1:08 am, Ivan Kabluchkov <ikabluch...@gmail.com> wrote:
> > Hi
> > I had got problem with test of GWT (GWT-Ext) projects, too.
> > I can't click on GWT editable grid's cell.
> > This topic help mehttp://
> kspace.in/blog/2010/02/11/selecting-extjs-grid-row-using-watir/
> > May be it be useful for you too
> >
> > On 27 окт, 04:41, jpapa <jp...@sbcglobal.net> wrote:
> >
> > > I'm attempting to use Watir to test a site developed on GWT. All
> > > elements of the page are drawn by GWT and hence it relies very heavily
> > > on Ajax.
> >
> > > I have managed to click most elements,but there is a GWT tree widget
> > > (which is basically a table with many nested divs) that simply won't
> > > respond.
> >
> > > I am able to locate the element I wish to click without issue. I've
> > > tried it by :id, and :xpath and I know I am arriving at the correct
> > > element. I've also confirmed with WatirMaker.rb that the element is
> > > what I think it is.
> >
> > > I've tried three ways of clicking on it -
> >
> > > browser.div(:xpath, "//d...@id='DEVICES_GATEWAY']/div").click
> >
> > > browser.div(:xpath, "//d...@id='DEVICES_GATEWAY']/
> > > div").fire_event('onclick')
> >
> > > and a hack that worked elsewhere -
> >
> > > browser.div(:xpath, "//d...@id='DEVICES_GATEWAY']/
> > > div").fire_event("onmouseover")
> > > browser.div(:xpath, "//d...@id='DEVICES_GATEWAY']/
> > > div").fire_event("onmousedown")
> > > browser.div(:xpath, "//d...@id='DEVICES_GATEWAY']/
> > > div").fire_event("onmouseup")
> >
> > > However, none of these produce the click and there is no error
> > > reported. I just fails silently.
> >
> > > Other divs on the site can be clicked. Some using just .click and some
> > > using the fire_events hack above.
> >
> > > I'm totally stumped.
> >
> > > I am using Windows 7 and IE 8.
> >
> > > This tree widget is a significant UI element, so if I can't drive it I
> > > think I'm sunk. (No pun intended.)
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to