Hi,
the existing discussion with the subject "Problems with Selenium and
ToggleButtons" is already closed.
Since I had some (mhm, actually there were two) requests for a
solution which were sent directly to me I would like to share the
response here.
Here it comes...
We used a workaround were we tried to invoke the method
CustomButton#onClick() directly on the GWT widget object.
With Selenium#getEval you can evaluate any javascript on the client.
The problem was then to find a mechanism to easily find the widget
object.
We implemented a selenium bridge which defines a javascript function
on the client: clickCustomButton
The test code then uses a class SeleniumHelper to invoke the function
on the client.
An example call looks like
String result = AWDSeleniumHelper.clickCustomButton(
selenium,
"css=foobar");
The client has to call SeleniumBridge.init() somewhere.
This worked for us.
The code is available on
http://people.freenet.de/aabeling/selenium.tar.gz
Best regards
Achim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---