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

Follow the Blog

    Get a monthly update on best practices for delivering successful software.

    Subscribe via email

      

    Subscribe via RSS      RSS icon

Topics

Search

WordPress

Comments about this site: info@pathf.com