Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Dec 1, 2012 12:02 AM by
HtmlUnit - setAttributeValue or setHiddenInputValue
Dec 1, 2012 12:02 AM
Hello again. I can get the attribute value with this method:
WebClient client = new WebClient();
HtmlPage page = client.getPage ("http://mydomain.com/welcome.jsp");
HtmlHiddenInput hidden = (HtmlHiddenInput) page.getElementByName("pagecodes");
The output = 12345
Now I need to send this attribute value along with my next page request. The following method would work:
HtmlPage page = client.getPage ("http://mydomain.com/nextpage.jsp?pagecodes=12345");
But the above method is cumbersome when submitting a large number of values. I am seeking a method like the following pseudocode:
HtmlPage page = client.getPage ("http://mydomain.com/nextpage.jsp");
page.setHiddenInputValue("pagecodes") = 12345;
Any suggestions are greatly appreciated.
This content has been marked as final.
Show 0 replies