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> |