10-03-2009, 01:38 AM
According to the QTP Help text, there's a function called Browser("BrowserName").Back that's supposed to take you to the previous web page. When I try using it, though, I get a General Run Error message (which is not overly helpful). What I'm trying to do is this...
1. From the main page, click on a link to navigate to a sub-page.
2. Retrieve some information off of the sub-page.
3. Return to the main page, and click on another link to navigate to a second sub-page.
4. Retrieve some additional information off of the second sub-page.
5. Return to the main page and log out.
Clicking on "forward" links to the individual sub-pages from the main page is no problem. How do I back up to the main page, though, without starting from scratch and logging into it again? Unfortunately, there's no navigation link that will take me back there, other than the browser's Back button. I tried adding it into the repository, but it just comes back as a WinToolbar class called ToolbarWindow32.
1. From the main page, click on a link to navigate to a sub-page.
2. Retrieve some information off of the sub-page.
3. Return to the main page, and click on another link to navigate to a second sub-page.
4. Retrieve some additional information off of the second sub-page.
5. Return to the main page and log out.
Clicking on "forward" links to the individual sub-pages from the main page is no problem. How do I back up to the main page, though, without starting from scratch and logging into it again? Unfortunately, there's no navigation link that will take me back there, other than the browser's Back button. I tried adding it into the repository, but it just comes back as a WinToolbar class called ToolbarWindow32.