Agile Ajax

Coming in GWT 1.5: Selenium testing support

According to Bruce Johnson, they are going to add a setDebugId() method to Widget. You can set the id now using GWT, and we've used that ourselves to work with Selenium in our GWT apps:

DOM.setElementProperty(uiObject.getElement(), "id", id);

The difference here is that setDebugId() will set the id of the widget and all of its children in a deterministic way that allows you to easily identify parts of the widget's DOM tree. For production, the setDebugId() will result in no code. Nice.

Technorati Tags: , ,

Topics:

Leave a comment

Powered by WP Hashcash

About Pathfinder

  • We design and build extraordinary applications for companies looking to make the next great idea a reality.
  • learn more

Topics

WordPress

Comments about this site: info@pathf.com