mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
committed by
Andrey Lushnikov
parent
bf7698e8f8
commit
117a128b42
15
test/assets/playground.html
Normal file
15
test/assets/playground.html
Normal 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>
|
||||
Reference in New Issue
Block a user