Monday, February 7, 2011

setting debugId on nested menu item (UI Binder)

Is there a way to set a debugId (for selenium testing) on a nested
menu item in UI binder? I have a setup similar to a typical menubar
such as:

<g:MenuBar ui:field="topMenu">
<g:MenuItem ui:field="file">
<b>File</b>
<g:MenuBar>
<g:MenuItem ui:field="save">Save</g:MenuItem>
<g:MenuItem ui:field="print">Print</g:MenuItem>
...(closing tags for everything)

If I set a debugId on all menuItems, only the top level menu item is
visible, and the rest are just indexed items (i.e. gwt-debug-file for
the top level, and gwt-debug-file-item0 is save, gwt-debug-file-item1
is print, etc.). There is a way to set this up in the Java code using
a base id:

ensureDebugId(file, "file");
ensureDebugId(save, "file", "save") (file is the "baseId" argument)

this produces debugId's: gwt-debug-file, and gwt-debug-file-save. Cant
this baseId be set from UI binder?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate