In selenium for inputbox, we can enter value like :
WebElement inputBox = driver.findElement(By.xpath(xpath)));
inputBox.sendKeys("abc");
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
WebElement inputDiv = driver.findElement(By.xpath("//div[contains(@class,'x-grid3-cell-inner')]"));
inputDiv.sendKeys("abc"); //This is not working
using xpath,I am getting the div, But how to enter text in that using it's xpath?
Html after adding the text manually :
<div class="x-grid3-cell-inner">ty</div>
The div in which I have to enter the text is:
<div class="x-grid3-cell-inner" />