title: selenium webdriver input field to focus in ruby for firefox
body: <p>I am currently using selenium webdriver 2.35 for firefox being programmed in ruby. I am having an issue where I can not get the webdriver to focus correctly on an input field element. By default, there is some gray text already populated in the field. When a user clicks on this field, that gray text is supposed to disappear and allow the user type into field. </p>
  
  <p>Using the webdriver, I would send the click command to that element and it would click, but nothing would visually happen. I also checked to see the active element and in fact it is that field(after clicking on the element). (I used this to check: <code>driver.switch_to.active_element</code>)</p>
  
  <p>Also, I would send keys to that field and it will show up gray either appended to the default text or by clearing that field and sending those keys</p>
  
  <p>Methods that I used but did not work</p>
  
  <p>1) <code>driver.find_element(element).click</code></p>
  
  <p>2) <code>driver.action.move_to.element.click.perform</code></p>
  
  <p>Does anyone have any suggestions? (I know that this may sound ambiguous but feel free to question me need any more information)</p>
  
  <p>I am not sure if this helps or not but here is the html from before the click(also the same result after using the click function in selenium </p>
  
  <p>This is the html before the click (and the result after using the selenium click function</p>
  
  <pre><code>&lt;html&gt;
      &lt;td id="ext-gen273" class="x-toolbar-cell input-container"&gt;
          &lt;div id="ext-gen274" class="x-form-field-wrap x-form-field-trigger-wrap" style="width: 467px;"&gt;
              &lt;input id="ext-comp-1024" class="x-form-text x-form-field autofoo-search-txtbx foo-search-dropdown x-form-empty-field" type="text" name="ext-comp-1024" autocomplete="off" size="24" style="width: 398px;"&gt;&lt;/input&gt;
          &lt;/div&gt;
      &lt;/td&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This html appears after  is after the user manually clicks on the field.</p>
  
  <pre><code>&lt;html&gt;
      &lt;td id="ext-gen273" class="x-toolbar-cell input-container"&gt;
          &lt;div id="ext-gen274" class="x-form-field-wrap x-form-field-trigger-wrap x-trigger-wrap-focus" style="width: 467px;"&gt;
              &lt;input id="ext-comp-1024" class="x-form-text x-form-field autofoo-search-txtbx foo-search-dropdown x-form-focus" type="text" name="ext-comp-1024" autocomplete="off" size="24" style="width: 398px;"&gt;&lt;/input&gt;
          &lt;/div&gt;
      &lt;/td&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I also noticed that after the user manually clicks on the field, the selenium commands work correctly </p>