History Navigation
TestCLIX supports navigating back through the browser history. Use this when your scenario depends on returning to a previous page.
How to navigate back
Section titled “How to navigate back”Click the ← (back arrow) button in the toolbox below the recording zone. The recorder inserts a history-back step into the timeline.
During playback, TestCLIX triggers the browser’s built-in back navigation, just as a real user would press the back button.
Before executing, TestCLIX checks whether there is a previous page in the history. If the history is empty (e.g., the scenario just started or a new tab was opened), the step fails.
Best used for
Section titled “Best used for”- Returning to a search results page after viewing a detail page
- Multi-step flows where the user navigates back to correct input
- Scenarios that follow the natural browser back-and-forth pattern
When browser back is not available
Section titled “When browser back is not available”Browser back requires at least one previous page in the navigation history. It will not work when:
- The current page is the first page in the scenario - there is nothing to go back to.
- A click opened the page in a new tab (e.g.,
target="_blank"link). The new tab starts with an empty history, so there is no previous page. See Mouse Click - New tabs for details on how the recorder handles new tabs. - The application replaced the history entry instead of pushing a new one (e.g., using
location.replace()orhistory.replaceState()).
Common errors
Section titled “Common errors”| Error | Meaning | What to do |
|---|---|---|
| Internal error | There is no previous page in the browser history, or the back navigation failed. | Remove the back step, or add a navigation step before it so the history is not empty. |
Caveats
Section titled “Caveats”- Single-page applications that manage routing internally may not respond to browser back the same way a traditional multi-page site does. Test the behaviour in the recorder before relying on it.
- If the previous page needs time to reload, add a pause after the back step.