title: Alternate ways to sendKeys in Selenium java
body: <p>Below is the <code>HTML</code> for a text field:</p>
  
  <pre><code>&lt;input class=" input" maxlength="255" type="text" aria-describedby="" placeholder="" id="4769:0" data-aura-rendered-by="4773:0" data-interactive-lib-uid="53"&gt; 
  </code></pre>
  
  <p>I have written below code to type the 'text' in the field </p>
  
  <pre><code>driver.findElement(By.xpath(".//div/input[starts-with(@id,'4') and @class=' input' and @type='text' and @placeholder='']")).sendKeys("text");  
  </code></pre>
  
  <p>It is identifying the field but not typing the text?</p>