Introduce Page.$ and Page.$$ (#75)

This patch introduces Page.$ and Page.$$ methods which are
aliases for `document.querySelector` and `document.querySelectorAll`. 

Fixes #78.
This commit is contained in:
JoelEinbinder
2017-07-17 18:56:56 -07:00
committed by Andrey Lushnikov
parent bf7698e8f8
commit 117a128b42
8 changed files with 158 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Playground</title>
</head>
<body>
<button>A button</button>
<textarea>A text area</textarea>
<div id="first">First div</div>
<div id="second">
Second div
<span class="inner">Inner span</span>
</div>
</body>
</html>