Skip to content

Examples for what Mobium gained since 2026-10-01, run on an emulator - #4

Merged
lana-20 merged 2 commits into
mainfrom
docs-current-2026-10-05
Oct 5, 2026
Merged

lana-20 merged 2 commits into
mainfrom
docs-current-2026-10-05

Conversation

@lana-20

@lana-20 lana-20 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

The reference, quick start and guides regenerate from Mobium's main on every build, so they were already current. The hand-written examples were not. Since 2026-10-01, Mobium added the following, and none of it had an example:

  • press: a TV remote's D-pad, select and media keys, and --gesture for back. The clients gained back.
  • upload / download: --device-path, to send or fetch a file or folder at any path on the device. The clients gained push_path / pull_path.
  • fill: sliders, by position.

Five scenarios, in every client

Page Scenario Recorded on an Android 15 emulator
press mobium press dpad-down pressed dpad-down — focus moved to homepage_container
press mobium press back --gesture swiped back from the left edge … still in the foreground
upload mobium upload ./seed --device-path /sdcard/seed a folder of 2 files, 8 bytes, each size read back
download mobium download --device-path /sdcard/seed -o seed-copy the same folder back, sizes checked
fill mobium fill label=Volume 0.3 moved label=Volume to position 0.3 — it reads "3.0", was "5.0"

Each scenario is in canonical.json and translated into Python, JavaScript, Go, Java and .NET. Each page already had its picture, so these record output only.

Also

Checks

  • Locally, against Mobium main (5f2e6f1):
    • extract: 71 tools, 85 commands.
    • check_examples: 104 scenarios and every Python, JavaScript, Go and Java snippet, 0 problems.
    • generate: 519 pages.
    • npm run build: succeeds.
  • .NET: not installed on this machine. This PR's CI checks it.

Five scenarios, in every client, each recorded on an Android 15 emulator:

- press dpad-down — a TV remote's D-pad (focus moved)
- press back --gesture — back as a swipe in from the edge (clients' back)
- upload ./seed --device-path — a folder to a device path (push_path)
- download --device-path — a folder back from one (pull_path)
- fill label=Volume 0.3 — a slider, moved to a position

capture.py's --only now takes one run's key as well as a tool, so a new
scenario is recorded without re-taking the pictures beside it. The
JavaScript D-pad example needs mobiumdev/mobium#119, merged, which made
the client's types accept it.
@lana-20
lana-20 merged commit c42422e into main Oct 5, 2026
2 checks passed
@lana-20
lana-20 deleted the docs-current-2026-10-05 branch October 5, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant