Friday, May 30, 2014

Re: debugId with UiBinder not working?

Did you <inherit name="com.google.gwt.debug.Debug"/> ? (see http://stackoverflow.com/a/11847603/116472)
Do you prepend a "gwt-debug-" prefix to your IDs in your Selenium tests to match elements?

On Saturday, May 31, 2014 1:46:54 AM UTC+2, Kay Pac wrote:
Hello there!  I am trying to use selenium with my GWT app and I have noticed that it uses inappropriate css class selectors to find the widgets. I did some research into this and it seems I need to use 'debugId' attribute in my UiBinder xml template. I have added debugId attributes and have also tried using the ensureDebugId method on @UiField annotated members. Neither of these approaches have resulted in usable IDs, or any IDs, on my widget elements.

Here is my UiBinder template: https://gist.github.com/katernya/d35ea486d50ae45b6995
Here is my LoginViewImpl class https://gist.github.com/katernya/9dbf2aa23cadd73dae24
Yes my UiBinder xml is caled LoginViewImpl.ui.xml

Thanks for any help!  This is with gWT 2.6.1 and Java 1.7 on Windows (embedded jetty instance launched via cargo) with and without super dev mode enabled.

Kay

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment