I, like many others am trying to use Selenium to test my GWT application. Unlike the others, though, I am having a much harder time using the ensureDebugId(String) method.
What is funny is that I am succeeding in setting the ID in some places but not in others. My gwt.xml file includes the requisite statement: <inherits name="com.google.gwt.user.Debug"/>, However, the following code doesn't set the ID of the TabPanel or the widget: TabPanel tabPanel = new TabPanel(); tabPanel.ensureDebugId("main-menu"); widget.ensureDebugId(widget.getName() + "-button"); tabPanel.add(widget, widget.getName()); There is a lot more going on in my application than what is listed here, but I do not set IDs explicitly anywhere in my code. After compiling the application there are no IDs that exist in the generated source despite these statements in my code. However, for the following code: RootPanel MENU_PANEL = RootPanel.get("gwtMainMenu"); menuPanel.ensureDebugId("menu-panel"); The ID 'gwt-debug-menu-panel' appears as expected. I haven't tried definitively, but I think the same thing happens with setID(). So this may not be a problem only related to ensureDebugId (String), but the way I set my IDs in general. However, I am looking to use the ensureDebugId method--not the setID() when I create IDs for Selenium. Why the 'work-sometimes' behaviour? Is there an order that I should be worried about? Any help would be appreciated... Stephen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---