Skip to content

Commit 2e55c21

Browse files
committed
docs: Update README with new open command options and navigate actions
1 parent 04fa78a commit 2e55c21

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Open a browser or Appium session.
2323
```bash
2424
wdiox open https://example.com
2525
wdiox open https://example.com --browser firefox
26+
wdiox open https://example.com --headless
27+
wdiox open https://internetbank.example.com --no-web-security # bypass CSP
2628
wdiox open --app /path/to/app.apk --device "emulator-5554"
2729
wdiox open --app /path/to/app.ipa --device "iPhone 15"
2830

@@ -33,13 +35,16 @@ wdiox open --attach --debug-port 9333 --debug-host 127.0.0.1
3335
# Attach to an already-running mobile app (Appium)
3436
wdiox open --attach --device "emulator-5554" --platform android
3537

36-
# Reuse an existing WebdriverIO config
38+
# Reuse an existing WebdriverIO config (full capabilities override)
3739
wdiox open --config wdio.conf.ts
3840
```
3941

4042
| Option | Default | Description |
4143
|---|---|---|
4244
| `--browser` | `chrome` | Browser to use (`chrome`, `firefox`, `edge`, `safari`) |
45+
| `--headless` | `false` | Run Chrome in headless mode |
46+
| `--no-web-security` || Disable Chrome web security and CSP (use when `snapshot` fails on strict-CSP sites) |
47+
| `--config` || Path to `wdio.conf.js` or `wdio.conf.ts` — fully overrides browser/Appium capabilities |
4348
| `--app` || Path to mobile app (`.apk`, `.ipa`, `.app`) |
4449
| `--device` | `emulator-5554` | Device name |
4550
| `--platform` | auto-detected | `android` or `ios` |
@@ -51,7 +56,6 @@ wdiox open --config wdio.conf.ts
5156
| `--attach` | `false` | Attach to an already-running browser or app instead of launching a new one |
5257
| `--debug-port` | `9222` | Chrome remote debugging port (used with `--attach`) |
5358
| `--debug-host` | `localhost` | Chrome remote debugging host (used with `--attach`) |
54-
| `--config` || Path to `wdio.conf.js` or `wdio.conf.ts` (reuse existing WebdriverIO config) |
5559
| `--session` | `default` | Session name |
5660

5761
If a session with the given name is already active, you'll be prompted to close it first.
@@ -113,11 +117,15 @@ wdiox screenshot /tmp/login-page.png
113117

114118
### `navigate` / `goto`
115119

116-
Navigate to a URL within the active session.
120+
Navigate to a URL, or control browser history.
117121

118122
```bash
119123
wdiox navigate https://example.com/login
120124
wdiox goto https://example.com/login
125+
126+
wdiox navigate refresh # reload current page
127+
wdiox navigate back # go back in history
128+
wdiox navigate forward # go forward in history
121129
```
122130

123131
---

0 commit comments

Comments
 (0)