View Full Version : How can you set the id of a BaseTreeModel

1 Jul 2010, 12:57 AM
We want to use Selenium to do automated GUI testing but that requires unique id's to be specified in HTML. For other components in GWT-EXT it's straight forward since there is a setId() method which results into specifying the id in the generated HTML. For the BaseTreeModel I can't figure out how to give it a custom unique id so automated testing can be done. Does anybody know how you can achieve this?

2 Jul 2010, 4:52 AM
As a work around I used xpath expressions to go to the treeview element. I still rather have a unique id assigned by myself but this works for now.

An important part is that you use onMouseDown in Selenium instead of click otherwise it doesn't work. ;)

5 Jul 2010, 10:03 AM