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
| `start_session` | Start a browser or app session. Use `platform: 'browser'` for web, `platform: 'ios'`/`'android'` for mobile, or `attach: true` to connect to a running Chrome instance |
359
+
| `launch_chrome` | Launch a new Chrome instance with remote debugging enabled (for use with `start_session({ attach: true })`) |
360
+
| `close_session` | Close or detach from the current session (supports `detach: true` to disconnect without terminating) |
| `get_visible_elements` | Get visible, interactable elements on the page. Supports `inViewportOnly` (default: true) to filter viewport elements, and `includeContainers` (default: false) to include layout containers on mobile |
370
-
| `get_accessibility` | Get accessibility tree with semantic element information |
371
-
| `scroll` | Scroll in a direction (up/down) by specified pixels |
| `get_elements` | Get visible, interactable elements on the page. Supports `inViewportOnly` (default: true) to filter viewport elements, and `includeContainers` (default: false) to include layout containers on mobile |
369
+
| `scroll` | Scroll in a direction (up/down) by specified pixels |
370
+
| `execute_script` | Execute arbitrary JavaScript in the browser context |
371
+
| `switch_tab` | Switch to a different browser tab by index or URL |
373
372
374
373
### Element Interaction (Web & Mobile)
375
374
@@ -382,7 +381,6 @@ All session types support `reporting` labels that appear in the BrowserStack Aut
@@ -647,8 +656,8 @@ Control app state when creating new sessions using the `noReset` and `fullReset`
647
656
648
657
```javascript
649
658
// Preserve login state between test runs
650
-
start_app_session({
651
-
platform:'Android',
659
+
start_session({
660
+
platform:'android',
652
661
appPath:'/path/to/app.apk',
653
662
deviceName:'emulator-5554',
654
663
noReset:true, // Don't reset app state
@@ -717,10 +726,12 @@ This eliminates the need to manually handle permission popups during automated t
717
726
Every tool call is automatically recorded to a session history. You can inspect sessions and export runnable code via MCP resources — no extra tool calls needed:
718
727
719
728
-`wdio://sessions` — lists all recorded sessions with type, timestamps, and step count
720
-
-`wdio://session/current/steps` — step log for the active session, plus a generated WebdriverIO JS script ready to run with `webdriverio`
721
-
-`wdio://session/{sessionId}/steps` — same for any past session by ID
729
+
-`wdio://session/current/steps` — step log for the active session
730
+
-`wdio://session/current/code` — generated runnable WebdriverIO JS for the active session
731
+
-`wdio://session/{sessionId}/steps` — step log for any past session by ID
732
+
-`wdio://session/{sessionId}/code` — generated JS for any past session by ID
722
733
723
-
The generated script reconstructs the full session — including capabilities, navigation, clicks, and inputs — as a standalone `import { remote } from 'webdriverio'` file.
734
+
The generated script reconstructs the full session — including capabilities, navigation, clicks, and inputs — as a standalone `import { remote } from 'webdriverio'` file. For BrowserStack sessions it includes the full try/catch/finally with automatic session result marking.
0 commit comments