From: Ahmed A. <asa...@ya...> - 2016-04-28 20:51:03
|
Hi Marvin, You can do something like: HtmlPage page = webClient.getPage(url); HtmlInput input = page.getHtmlElementById("code"); input.setValueAttribute("something"); If you want to intercept the server response, please read http://htmlunit.sourceforge.net/faq.html#HowToModifyRequestOrResponse Ahmed From: Marvin Desrosiers <mar...@gm...> To: htm...@li... Sent: Thursday, April 28, 2016 6:26 PM Subject: [Htmlunit-user] How do I provide a value for a text field that does not have the value attribute in Htmlunit? The element below was received in a form: <input id="code" type="text" name="code" placeholder="Enter code here" autocomplete="off"/> I don't know how to pass a string to this input element. Thank you, Marvin DesrosiersM (862) 368-2327E mar...@gm... ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |