Skip to content

Instantly share code, notes, and snippets.

@tristansokol
Created August 20, 2018 21:49
Show Gist options
  • Save tristansokol/d7e61c7fa68703b1949f717918c061e0 to your computer and use it in GitHub Desktop.
Save tristansokol/d7e61c7fa68703b1949f717918c061e0 to your computer and use it in GitHub Desktop.
let mouse = page.mouse();
// same as page.click(), but uses a page x,y coordinate
mouse.click(300, 287,{
button: 'middle',//left, right, middle
clickCount: 2,
delay: 20 //how long to hold down the mouse button
})
mouse.down();
mouse.up();
mouse.move(x,y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment