mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
d5a91650ae
This patch implements Basic Input api: - Page.focus(selector) - focuses element with selector - Page.click(selector) - clicks element with selector - Page.type(text) - types text into a focused element Fixed #43.
15 lines
285 B
HTML
15 lines
285 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Button test</title>
|
|
</head>
|
|
<body>
|
|
<button onclick="clicked();">Click target</button>
|
|
<script>
|
|
window.result = 'Was not clicked';
|
|
function clicked() {
|
|
result = 'Clicked';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |