From: Roberto B. - A. <r.b...@af...> - 2015-05-21 07:45:53
|
Hi, it doesn't work.. i've tried this : page.asText(); page.getEnclosingWindow().getHistory().back(); page.asText(); but I see the same page Roberto ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Thursday, May 21, 2015 1:48 AM Subject: Re: [Htmlunit-user] Browser back button Hi, You can get WebClient/Page from each other by something like: webClient.getWebWindows().get(0).getEnclosedPage(); page.getEnclosingWindow().getHistory().back(); Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Wednesday, May 20, 2015 7:13 PM Subject: [Htmlunit-user] Browser back button Hi, I would like to simulate the browser "back button" and get the Html Page i searched internet.. and i have found this : webClient.getWebWindows().get(0).getHistory().back(); but.. how can i get the Html Page (if works the above command ) ? Thanks! Roberto ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |