navigate
Open a URL in the browser
Open a page. Use a full URL or an environment variable inside quotes.
Syntax
Given I navigate to "<url>"Qualifiers
| Qualifier | Role | Required |
|---|---|---|
to | URL payload | Yes |
Requirements
| Item | Contract |
|---|---|
| Element / control shape | None — page navigation |
| How the label binds | URL after to is a payload ($ENV expands) |
| Qualifiers that change resolve | to only |
| Platform | Web (HTTP URLs). Mobile: in-app routing / deep link after Package/Activity launch |
| Wrong shape → use instead | History → go. Reload → refresh |
See also UI contracts.
Examples
Given I navigate to "https://example.com"
Given I navigate to "https://example.com/login"
Given I navigate to "$BASE_URL"Notes
- Web: every scenario needs a
navigatestep to start (or continue) on a page. There is noSTK_BASE_URL. - Mobile: the app opens from
Package:/Activity:headers. Usenavigate tofor in-app screen routing (activity name or deep link), not for the initial launch. - Platform: primarily web for HTTP URLs.