title: Mapping ui:field in GWT to generated code
body: <p>I'm trying to get some automated UI testing going on a GWT application and I'm having trouble finding a way to track UI elements. </p>
  
  <p>For example, I have the following:</p>
  
  <pre><code>&lt;g:Button text="Submit" ui:field="submitButton" enabled="true" /&gt;
  </code></pre>
  
  <p>which generates: </p>
  
  <pre><code>&lt;button class="gwt-Button" type="button"&gt;Submit&lt;/button&gt;
  </code></pre>
  
  <p>Its a compiler error to set both ui:field and id (id is considered deprecated anyway) so the problem is that I have no easy way to select my submit button using something like selenium. </p>
  
  <p>Is anyone aware of a way I can map the </p>
  
  <pre><code>ui:field="sumbitButton"
  </code></pre>
  
  <p>to the generated HTML?</p>