From: Ahmed A. <asa...@ya...> - 2012-12-20 03:03:48
|
Hi Steve, Please provide minimal test case that shows yours issue, so others can reproduce it. http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed ________________________________ From: Steve Tang <sb...@ho...> To: htm...@li... Sent: Thursday, December 20, 2012 2:30 AM Subject: [Htmlunit-user] (no subject) 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 CLICK GET -- logging server call POST -- info to log user in ACCOUNT 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 ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |