I can not change the text in textarea using WebClient/HtmlUnit/Java. I tried to google it, but with no luck. Can anyone help? There is source code:
WebDriver driver = new HtmlUnitDriver();
driver.get("http://some_site.com");
driver.findElement(By.id("niEditor")).sendKeys("some value");
String test = findElement(By.id("niEditor")).getText(); // no changes
and the tags in html:
以上就是How to change text in textarea with WebDriver的详细内容,更多请关注web前端其它相关文章!