From: Steve T. <sb...@ho...> - 2012-12-19 23:30:31
|
Hi folks, New to this list, and relatively new to htmlunit, been using for about six months now. I have ran into a problem that i cannot seem to resolve, no matter how much googling/forum scanning i tried. Here's the issue I have a page with html and javascript. The page has a button on it, that when clicked does a POST and logs the user into his account. The problem is that Right after the button is clicked, there is a javascript action that does a GET call to a logging server, that logs the action.. So the sequence of events goes like this. BUTTON CLICKGET -- logging server callPOST -- info to log user inACCOUNT PAGE LOAD The GET and POST both happened on the first button click. Now using HTMLUnit, what i am trying to test that code by doing this HtmlPage page = continueBtn.click(); However, what i get back for HtmlPage is from the GET (first action) call, when what i want is from the POST (second action). What is the recommended way to get around something like this? Thanks! ------------------------------------------------------- Steve Tang |