This patch:
- adds Mouse class which holds mouse state and implements mouse primitives,
such as moving, button down and button up.
- implements high-level mouse api, such as `page.click` and `page.hover`.

References #40, References #89
This commit is contained in:
JoelEinbinder
2017-07-21 20:29:31 -07:00
committed by Andrey Lushnikov
parent eb2cb67b0e
commit 98ee35655f
17 changed files with 458 additions and 55 deletions

View File

@@ -4,6 +4,7 @@
<title>Button test</title>
</head>
<body>
<script src="mouse-helper.js"></script>
<button onclick="clicked();">Click target</button>
<script>
window.result = 'Was not clicked';