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: , ,

Related posts:

  1. Ajax Testing: Doubling Down with Selenium and JMeter
  2. ZK 2.4.1 – Performance Improvements, Better Testing Support and YUI
  3. Can your Selenium do that? Testing flash/flex and silverlight in web apps with iMacros
  4. gwt4nb – GWT Support for NetBeans IDE
  5. 2007 Predictions Coming True? – The Coming Browser Revolution

Topics:

Leave a comment

Powered by WP Hashcash

Launch: Pathfinder Newsletter

    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