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.
14 lines
317 B
HTML
14 lines
317 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Textarea test</title>
|
|
</head>
|
|
<body>
|
|
<textarea></textarea>
|
|
<script>
|
|
window.result = '';
|
|
let textarea = document.querySelector('textarea');
|
|
textarea.addEventListener('input', () => result = textarea.value, false);
|
|
</script>
|
|
</body>
|
|
</html> |