title: Selenium: How to enter white space as the value of a text field?
body: <p>I have a form text field that is being populated with a default value. I would like to clear the value and enter white space to assert that the expected validation occurs. I am using Selenium RC and the PHPUnit Selenium extension. How can I achieve this?</p>
  
  <p>Note: I have already tried doing these, but they do not work:</p>
  
  <pre><code>$this-&gt;type('FirstName', "  "); //spaces
  $this-&gt;type('FirstName', "\t"); //tab character
  </code></pre>
  
  <p>They clear the value from the field, but they do not enter the white space into the field.</p>
  
  <p><strong>Update:</strong> I found that <a href="http://release.seleniumhq.org/selenium-core/1.0/reference.html#whitespace" rel="noreferrer">if you are using Selenium IDE, you can type white space by using their <code>${space}</code> variable</a> but this does not work when using Selenium RC and the PHPUnit Selenium extension.</p>