( device: DeviceInfo, x: number, y: number, durationMs = 800, )
| 79 | } |
| 80 | |
| 81 | export async function longPressAndroid( |
| 82 | device: DeviceInfo, |
| 83 | x: number, |
| 84 | y: number, |
| 85 | durationMs = 800, |
| 86 | ): Promise<void> { |
| 87 | await runAndroidAdb(device, [ |
| 88 | 'shell', |
| 89 | 'input', |
| 90 | 'swipe', |
| 91 | String(x), |
| 92 | String(y), |
| 93 | String(x), |
| 94 | String(y), |
| 95 | String(durationMs), |
| 96 | ]); |
| 97 | } |
| 98 | |
| 99 | export async function typeAndroid(device: DeviceInfo, text: string, delayMs = 0): Promise<void> { |
| 100 | const providerText = resolveAndroidTextInjector(device); |
no test coverage detected