Created
September 6, 2022 12:57
-
-
Save tyom/5d7cb7f220ee521216d360cc3413c115 to your computer and use it in GitHub Desktop.
Appium three-finger long-press (Expo dev menu)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// W3C Actions | |
await driver.performActions([ | |
{ | |
type: 'pointer', | |
id: 'finger1', | |
parameters: { pointerType: 'touch' }, | |
actions: [ | |
{ type: 'pointerMove', x: 100, y: 300 }, | |
{ type: 'pointerDown', duration: 1000 }, | |
{ type: 'pointerUp' }, | |
], | |
}, | |
{ | |
type: 'pointer', | |
id: 'finger2', | |
parameters: { pointerType: 'touch' }, | |
actions: [ | |
{ type: 'pointerMove', x: 200, y: 300 }, | |
{ type: 'pointerDown', duration: 1000 }, | |
{ type: 'pointerUp' }, | |
], | |
}, | |
{ | |
type: 'pointer', | |
id: 'finger3', | |
parameters: { pointerType: 'touch' }, | |
actions: [ | |
{ type: 'pointerMove', x: 300, y: 300 }, | |
{ type: 'pointerDown', duration: 1000 }, | |
{ type: 'pointerUp' }, | |
], | |
}, | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment