Created
August 20, 2018 21:49
-
-
Save tristansokol/d7e61c7fa68703b1949f717918c061e0 to your computer and use it in GitHub Desktop.
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
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