Skip to content

Instantly share code, notes, and snippets.

@fabito
Created August 22, 2018 02:27
Show Gist options
  • Save fabito/2ff4a37cc705db5f5b532c484e44ac2a to your computer and use it in GitHub Desktop.
Save fabito/2ff4a37cc705db5f5b532c484e44ac2a to your computer and use it in GitHub Desktop.
neyboy game - tap methods
async def tap_left(self, delay=0):
x = self.x + self.width // 4
y = self.y + self.height // 3
await self.page.mouse.click(x, y, {'delay': delay})
async def tap_right(self, delay=0):
x = (self.x + self.width) - self.width // 4
y = self.y + self.height // 3
await self.page.mouse.click(x, y, {'delay': delay})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment