title: Selenium : Enter the text in div using xpath
body: <p>In selenium for inputbox, we can enter value like :</p>
  
  <pre><code>WebElement inputBox = driver.findElement(By.xpath(xpath)));
  inputBox.sendKeys("abc");
  </code></pre>
  
  <p>but on 1 webpage, I am having one button after clicking on that get one div in which i have to enter through selenium, I am getting the xpath for that div like</p>
  
  <pre><code>WebElement inputDiv = driver.findElement(By.xpath("//div[contains(@class,'x-grid3-cell-inner')]"));
  inputDiv.sendKeys("abc");           //This is not working
  </code></pre>
  
  <p>using xpath,I am getting the div, But how to enter text in that using it's xpath?</p>
  
  <p>Html after adding the text manually :</p>
  
  <pre><code>&lt;div class="x-grid3-cell-inner"&gt;ty&lt;/div&gt;
  </code></pre>
  
  <p>The div in which I have to enter the text is:</p>
  
  <pre><code>&lt;div class="x-grid3-cell-inner" /&gt;
  </code></pre>