Can we enter text without using sendKeys()?
By using JavascriptExecutor we can enter text without using sendKeys()
1 2 3 |
WebDriver driver = new FirefoxDriver(); JavascriptExecutor executor = (JavascriptExecutor)driver; executor.executeScript("document.getElementById("textbox_id").value='new value';); |