Forum Discussion

vinodtc's avatar
vinodtc
Contributor
15 years ago

How can I work with IE Browser back button?

Hi,



I want to click on IE7/IE8 browser back button to go back to previous page. Please provide the help topic or code for this.



I have used the Object spy to identify the location of back button. It is showing it as window.



Please find the screenshot.



Regards,

Viniod

6 Replies

  • Try to use "GoBack" method of "...Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1)" object.
  • Hi,



    You can also use the GoBack method of your page (Sys.Process("iexplore").Page()) object. Look at the Page object in the Object Browser - its Methods tab lists methods which control page navigation under the Internet Explorer category.
  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi,



    Alternatively, you can use Alt-LeftArrow shortcut, as all you need is to return to the previous page.

    Something like this:

    ...Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1).Keys("~[Left]")
  • Hi Jared  & Alex,



    Your solutions are working. Thank you very much.



    Regards,

    Vinod
  • Kimoanh's avatar
    Kimoanh
    Occasional Contributor
    Hi Jared and Alexei,

    I would like to click on IE7/IE8 browser back button for testing my web application.

    Please provide the help topic or code for this.

    Thanks,

    OT
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    OT, please reference the solutions posted above as they include code samples and techniques for executing the same task of clicking the back button.