> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/en/faq/faq-create-scenario/is-it-possible-to-create-a-test-scenario-in-which-the-user-goes-back-and-forth-between-two-screens-e.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Can I create a test scenario that switches between two screens (e.g. user account and admin account)?

Yes, you can. You can switch between multiple screens by adding a [Go to URL step](https://help.autify.com/nocode-web/en/autify-university/foundation/creating-a-scenario/go-to-url-button.md).

Currently, you can't run tests across multiple scenarios, such as checking whether an action taken in one scenario is reflected in another. However, you can switch between multiple screens within a scenario by using a Go to URL Step.

For example, this is useful when you want to verify whether a setting on the admin screen is reflected on the user's screen (display/hide items, change the wording, etc.). In this case, you will need to add a step to switch accounts. You can do this efficiently by creating a couple of Step Groups in advance. For example, you could have a Step Group that signs in with an Admin account and a Step Group that signs out and signs back in as a regular user on the user screen. An example is shown below.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-770e0c39665611ea103d232336c086af97725bdd%2FSwitchWindow_en.png?alt=media)

If you overuse Go to URL steps, there will be an excessive number of steps in the scenario, making the scenario hard to maintain (for example, if the test fails, Autify may be unable to verify subsequent steps). For this reason, we recommend [keeping scenarios as simple as possible](https://help.autify.com/nocode-web/en/when-the-test-doesnt-work/tips/why-should-i-keep-the-number-of-steps-in-a-test-scenario-small.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/en/faq/faq-create-scenario/is-it-possible-to-create-a-test-scenario-in-which-the-user-goes-back-and-forth-between-two-screens-e.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
