The trouble is, as I understand it (note gwt is very new to me as
well!) selenium.click() effectively fires the Javascript onClick()
handler - but GWT looks for stuff like mouseDown and the like, not
onClick().

I'm using code like: (note this is using the ruby selenium-rc driver -
names will be different in the Java driver)
      def full_click(locator)
        mouse_over(locator)
        mouse_move(locator)
        mouse_down(locator)
        mouse_up(locator)
        click(locator)
        mouse_out(locator)
      end

- (I got this from somewhere on the net - can't remember where right now!)
this seems to work quite well for testing tree widgets.

- Korny

On Fri, Feb 20, 2009 at 9:16 PM, sitaro <[email protected]> wrote:
>
> Hello!!
>
> I need to run a test with Selenium in wich a certain TreeItem is
> selected and I never get it working. I put the correct locator, but
> when it arrives to:
> selenium.click(myLocator);
> it doesn't seem to happen anything, the TreeItem is not selected. How
> should I do it?
>
> Thank you very much!!
>
> Antonio
> >
>



-- 
Kornelis Sietsma  korny at my surname dot com
kornys on gmail, twitter, facebook, etc.
"Every jumbled pile of person has a thinking part
that wonders what the part that isn't thinking
isn't thinking of"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to