mobilecli 0.3.75 → 0.3.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,6 +38,7 @@ A universal command-line tool for managing iOS and Android devices, simulators,
38
38
  - **App Management**: Launch, terminate, install, uninstall, list, and get foreground apps
39
39
  - **Filesystem**: Push, pull, list, mkdir, and rm files on-device or in app containers (Android, iOS Simulator)
40
40
  - **Crash Reports**: List and fetch crash reports from iOS and Android devices
41
+ - **Webview Inspection**: List, navigate, query DOM, and evaluate JavaScript in embedded webviews
41
42
 
42
43
  ### 🎯 Platform Support
43
44
 
@@ -338,6 +339,66 @@ Example output for `agent status`:
338
339
  }
339
340
  ```
340
341
 
342
+ ### Webview Inspection 🌐
343
+
344
+ Inspect and interact with embedded webviews (`WKWebView` on iOS, `android.webkit.WebView` on Android) running inside native apps.
345
+
346
+ ```bash
347
+ # List embedded webviews in the foreground app
348
+ mobilecli webview list --device <device-id>
349
+
350
+ # Navigate a webview to a URL
351
+ mobilecli webview goto <id> https://example.com --device <device-id>
352
+
353
+ # Reload, go back or forward
354
+ mobilecli webview reload <id> --device <device-id>
355
+ mobilecli webview back <id> --device <device-id>
356
+ mobilecli webview forward <id> --device <device-id>
357
+
358
+ # Get current URL and page title
359
+ mobilecli webview url <id> --device <device-id>
360
+ mobilecli webview title <id> --device <device-id>
361
+
362
+ # Dump the full HTML content of the page
363
+ mobilecli webview content <id> --device <device-id>
364
+
365
+ # Query DOM elements by CSS selector
366
+ mobilecli webview query <id> "button" --device <device-id>
367
+ mobilecli webview query <id> "[data-testid='submit']" --device <device-id>
368
+
369
+ # Evaluate arbitrary JavaScript
370
+ mobilecli webview eval <id> "document.querySelectorAll('a').length" --device <device-id>
371
+
372
+ # Wait for the page to finish loading
373
+ mobilecli webview wait <id> --state load --device <device-id>
374
+ mobilecli webview wait <id> --state domcontentloaded --timeout 5000 --device <device-id>
375
+ ```
376
+
377
+ Example output for `webview list`:
378
+ ```json
379
+ {
380
+ "status": "ok",
381
+ "data": [
382
+ {
383
+ "id": "1",
384
+ "url": "https://example.com",
385
+ "title": "Example Domain"
386
+ }
387
+ ]
388
+ }
389
+ ```
390
+
391
+ Example output for `webview query <id> "button"`:
392
+ ```json
393
+ {
394
+ "status": "ok",
395
+ "data": [
396
+ { "tag": "button", "text": "Sign In", "id": "login-btn", "class": "btn-primary", "value": null, "href": null },
397
+ { "tag": "button", "text": "Cancel", "id": null, "class": "btn-secondary", "value": null, "href": null }
398
+ ]
399
+ }
400
+ ```
401
+
341
402
  ### Crash Reports 💥
342
403
 
343
404
  ```bash
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobilecli",
3
- "version": "0.3.75",
3
+ "version": "0.3.76",
4
4
  "author": "Mobile Next",
5
5
  "description": "A universal command-line tool for managing iOS and Android devices, simulators, emulators and apps",
6
6
  "repository": {