You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Extend navigate command with browser actions (refresh, back, forward)
- Updated handler to support new actions alongside URL navigation.
- Enhanced flags documentation to reflect the additional options.
- Added comprehensive test coverage for the new browser actions.
Copy file name to clipboardExpand all lines: skills/wdiox-usage/navigate-scroll-steps.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,35 @@
1
1
# `navigate`, `scroll`, and `steps` — Guide
2
2
3
-
## `wdiox navigate <url>` / `goto <url>`
3
+
## `wdiox navigate <url|action>` / `goto <url>`
4
4
5
-
Changes the URL of the active session without closing and reopening it. Works on both browser and mobile (deep link / intent).
5
+
Changes the URL of the active session, or controls browser history. Works on both browser and mobile (deep link / intent).
6
6
7
7
```bash
8
8
wdiox navigate https://example.com/dashboard
9
9
wdiox goto https://example.com/settings # alias
10
+
11
+
# Browser history actions
12
+
wdiox navigate refresh # reload the current page
13
+
wdiox navigate back # go back in browser history
14
+
wdiox navigate forward # go forward in browser history
10
15
```
11
16
12
17
**When to use over `open`:**
13
18
- Mid-session page changes (after login, after clicking a link that fails, etc.)
14
19
- Skipping intermediate pages in a multi-step flow to resume from a known URL
15
20
- Mobile deep links (if the app registers the URL scheme)
16
21
17
-
**Mobile note:**`navigate` on a native Appium session sends a URL intent via ADB. It works for apps that register URL schemes (deep links). For navigating within the app, use `click` on nav elements instead.
22
+
**Mobile note:**`navigate` on a native Appium session sends a URL intent via ADB. It works for apps that register URL schemes (deep links). For navigating within the app, use `click` on nav elements instead. History actions (`refresh`, `back`, `forward`) are browser-only.
18
23
19
24
```bash
20
25
# Browser: skip login, start from the dashboard
21
26
wdiox open https://app.example.com/login
22
27
wdiox fill e2 user@example.com && wdiox fill e3 "$PASSWORD"&& wdiox click e4
23
28
wdiox navigate https://app.example.com/dashboard # jump straight to target
24
29
wdiox snapshot
30
+
31
+
# Reload after a form submission to check the result
0 commit comments