mobilewright 0.0.31 → 0.0.32

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.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -144,6 +144,7 @@ screen.getByText(/welcome/i) // RegExp match
144
144
  screen.getByText('welcome', { exact: false }) // substring match
145
145
  screen.getByType('TextField') // element type
146
146
  screen.getByRole('button', { name: 'Sign In' }) // semantic role + name filter
147
+ screen.getByPlaceholder('Search...') // placeholder text
147
148
  ```
148
149
 
149
150
  **Direct actions:**
@@ -168,6 +169,8 @@ await locator.tap()
168
169
  await locator.doubleTap()
169
170
  await locator.longPress({ duration: 1000 })
170
171
  await locator.fill('hello@example.com') // tap to focus + type text
172
+ await locator.swipe({ direction: 'left' }) // swipe on a specific element
173
+ await locator.scrollIntoViewIfNeeded() // scroll until element is visible
171
174
  ```
172
175
 
173
176
  **Queries:**
@@ -218,7 +221,8 @@ await device.goto('myapp://settings');
218
221
  await device.openUrl('https://example.com');
219
222
 
220
223
  // App lifecycle
221
- await device.launchApp('com.example.app', { locale: 'fr_FR' });
224
+ await device.launchApp('com.example.app', { locale: 'fr_FR' }); // waits until app is in foreground
225
+ await device.launchApp('com.example.app', { noWaitAfter: true }); // skip foreground wait
222
226
  await device.terminateApp('com.example.app');
223
227
  const apps = await device.listApps();
224
228
  const foreground = await device.getForegroundApp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobilewright",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Mobile device automation framework inspired by Playwright",
5
5
  "homepage": "https://mobilewright.dev",
6
6
  "license": "Apache-2.0",
@@ -34,10 +34,10 @@
34
34
  "templates"
35
35
  ],
36
36
  "dependencies": {
37
- "@mobilewright/core": "^0.0.31",
38
- "@mobilewright/driver-mobilecli": "^0.0.31",
39
- "@mobilewright/driver-mobile-use": "^0.0.31",
40
- "@mobilewright/protocol": "^0.0.31",
37
+ "@mobilewright/core": "^0.0.32",
38
+ "@mobilewright/driver-mobilecli": "^0.0.32",
39
+ "@mobilewright/driver-mobile-use": "^0.0.32",
40
+ "@mobilewright/protocol": "^0.0.32",
41
41
  "commander": "^14.0.3",
42
42
  "debug": "^4.4.3",
43
43
  "playwright": "1.58.2",