From: Ahmed A. <asa...@ya...> - 2015-05-21 07:52:08
|
Hi, Then please post your complete case. Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: Ahmed Ashour <asa...@ya...>; htm...@li... Sent: Thursday, May 21, 2015 9:45 AM Subject: Re: [Htmlunit-user] Browser back button 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 |