Hello Oleg, Would you please tell me if capturing HTTP activity as you suggested in the previous e-mail requires additional software, or if use of the plain web browser (i.e. Google Chrome) is sufficient? Thanks!
Oscar Oscar Bastidas, Ph.D. Postdoctoral Research Associate University of Minnesota On Tue, Mar 26, 2019, 3:09 AM Oleg Kalnichevski <[email protected]> wrote: > On Mon, 2019-03-25 at 18:22 -0500, Oscar Bastidas wrote: > > Hello, > > > > I am trying to programmatically fill out a multi-page web form that > > contains up-loading a file, subsequent text boxes, radio buttons, > > etc... > > and the final "submit button" is actually an icon instead of an > > actual > > submit button with traditional name-value pair fields in the HTML > > code: > > > > ... > > <script> > > var form = $('pdb'); > > > > function proceed() { > > form.submit(); > > } > > </script> > > *<div id=input_nav>* > > *<table class="nav_entry" onclick="proceed();" align=right>* > > * <tr>* > > * <td align="right">Next Step:<br/>Select Model/Chain</td>* > > * <td width="51" align="left"><img src="images/basic/next.png > > <http://charmm-gui.org/images/basic/next.png>"></td>* > > * </tr>* > > *</table>* > > *</div>* > > </div></div> > > </div> > > > > ... > > > > Once the above icon is clicked, I am taken to another page with more > > text > > boxes, drop-down menus, etc... until finally reaching the last page > > (about > > 4 pages later) where I finally have to download a file prepared > > according > > to the form fill-out. > > > > My question is: how do I use HttpClient to click the above button to > > proceed to the next page? I have tried looking through many forums > > on the > > internet, but none address my specific situation and I am stuck. One > > StackOverflow conversation claimed that HttpClient can pull this off, > > but > > no actual code was ever provided (so I am optimistic this can be > > done). > > Any help would be greatly appreciated. Thanks. > > > > The easiest way would be to capture HTTP traffic generated with a > browser and reproduce the same HTTP message exchanges with HttpClient. > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
