Я использую htmlunit. Как я могу установить значение ввода текста, если у него нет атрибута «значение»?
<input type="text" onkeypress="test();" id="id" name="name" class="ttt">
Я пробовал это, но ничего
((HtmlTextInput) portfolios.getHtmlElementById("id")).setText("text");
((HtmlInput) portfolios.getHtmlElementById("id")).setTextContent("text");
((HtmlInput) portfolios.getHtmlElementById("id")).setAttribute("value", "text");
Пожалуйста помоги!