title: How can I overcome Element id exception in Selenium?
body: <p>T set 'id' for GWT widgets in UiBinder itself.</p>
  
  <p>For eg. <strong></strong></p>
  
  <p>Also added <strong></strong> in *.gwt.xml</p>
  
  <p>Then I try this in Selenium test case</p>
  
  <pre><code>WebElement element = driver.findElement(By.id("gwt-debug-loginButton"));
  </code></pre>
  
  <p>Sometimes it works correctly. But some times it throws the following exception,</p>
  
  <blockquote>
    <p>Unable to locate element:
    {"method":"id","selector":"gwt-debug-loginButton"} Command duration or
    timeout: 62 milliseconds</p>
  </blockquote>
  
  <p>What i need to update?
  Can anyone help me?</p>