Skip to content

Instantly share code, notes, and snippets.

@tyom
Created September 6, 2022 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyom/5d7cb7f220ee521216d360cc3413c115 to your computer and use it in GitHub Desktop.
Save tyom/5d7cb7f220ee521216d360cc3413c115 to your computer and use it in GitHub Desktop.
Appium three-finger long-press (Expo dev menu)
// 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