puppeteer-ruby 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +30 -0
  3. data/.rubocop.yml +4 -5
  4. data/docs/Puppeteer.html +2010 -0
  5. data/docs/Puppeteer/AsyncAwaitBehavior.html +105 -0
  6. data/docs/Puppeteer/Browser.html +2150 -0
  7. data/docs/Puppeteer/BrowserContext.html +809 -0
  8. data/docs/Puppeteer/BrowserFetcher.html +214 -0
  9. data/docs/Puppeteer/BrowserRunner.html +914 -0
  10. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +477 -0
  11. data/docs/Puppeteer/CDPSession.html +784 -0
  12. data/docs/Puppeteer/CDPSession/Error.html +124 -0
  13. data/docs/Puppeteer/ConcurrentRubyUtils.html +430 -0
  14. data/docs/Puppeteer/Connection.html +960 -0
  15. data/docs/Puppeteer/Connection/MessageCallback.html +434 -0
  16. data/docs/Puppeteer/Connection/ProtocolError.html +216 -0
  17. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +217 -0
  18. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +244 -0
  19. data/docs/Puppeteer/ConsoleMessage.html +565 -0
  20. data/docs/Puppeteer/ConsoleMessage/Location.html +433 -0
  21. data/docs/Puppeteer/DOMWorld.html +1580 -0
  22. data/docs/Puppeteer/DOMWorld/DetachedError.html +124 -0
  23. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +124 -0
  24. data/docs/Puppeteer/DebugPrint.html +233 -0
  25. data/docs/Puppeteer/Device.html +470 -0
  26. data/docs/Puppeteer/Devices.html +139 -0
  27. data/docs/Puppeteer/ElementHandle.html +1603 -0
  28. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +206 -0
  29. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +206 -0
  30. data/docs/Puppeteer/ElementHandle/Point.html +481 -0
  31. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +124 -0
  32. data/docs/Puppeteer/EmulationManager.html +454 -0
  33. data/docs/Puppeteer/EventCallbackable.html +433 -0
  34. data/docs/Puppeteer/EventCallbackable/EventListeners.html +435 -0
  35. data/docs/Puppeteer/ExecutionContext.html +772 -0
  36. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +124 -0
  37. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +357 -0
  38. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +389 -0
  39. data/docs/Puppeteer/Frame.html +3625 -0
  40. data/docs/Puppeteer/FrameManager.html +2414 -0
  41. data/docs/Puppeteer/FrameManager/NavigationError.html +124 -0
  42. data/docs/Puppeteer/IfPresent.html +222 -0
  43. data/docs/Puppeteer/JSHandle.html +1352 -0
  44. data/docs/Puppeteer/Keyboard.html +1557 -0
  45. data/docs/Puppeteer/Keyboard/KeyDefinition.html +831 -0
  46. data/docs/Puppeteer/Keyboard/KeyDescription.html +603 -0
  47. data/docs/Puppeteer/Launcher.html +237 -0
  48. data/docs/Puppeteer/Launcher/Base.html +385 -0
  49. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +124 -0
  50. data/docs/Puppeteer/Launcher/BrowserOptions.html +441 -0
  51. data/docs/Puppeteer/Launcher/Chrome.html +628 -0
  52. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +382 -0
  53. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +531 -0
  54. data/docs/Puppeteer/Launcher/LaunchOptions.html +893 -0
  55. data/docs/Puppeteer/LifecycleWatcher.html +834 -0
  56. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +363 -0
  57. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +206 -0
  58. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +124 -0
  59. data/docs/Puppeteer/Mouse.html +1105 -0
  60. data/docs/Puppeteer/Mouse/Button.html +136 -0
  61. data/docs/Puppeteer/NetworkManager.html +901 -0
  62. data/docs/Puppeteer/NetworkManager/Credentials.html +385 -0
  63. data/docs/Puppeteer/Page.html +5426 -0
  64. data/docs/Puppeteer/Page/ScreenshotOptions.html +845 -0
  65. data/docs/Puppeteer/Page/ScriptTag.html +555 -0
  66. data/docs/Puppeteer/Page/StyleTag.html +448 -0
  67. data/docs/Puppeteer/Page/TargetCrashedError.html +124 -0
  68. data/docs/Puppeteer/RemoteObject.html +951 -0
  69. data/docs/Puppeteer/Target.html +1384 -0
  70. data/docs/Puppeteer/Target/InitializeFailure.html +124 -0
  71. data/docs/Puppeteer/Target/TargetInfo.html +729 -0
  72. data/docs/Puppeteer/TimeoutError.html +135 -0
  73. data/docs/Puppeteer/TimeoutSettings.html +496 -0
  74. data/docs/Puppeteer/TouchScreen.html +464 -0
  75. data/docs/Puppeteer/Viewport.html +757 -0
  76. data/docs/Puppeteer/WaitTask.html +211 -0
  77. data/docs/Puppeteer/WaitTask/TerminatedError.html +124 -0
  78. data/docs/Puppeteer/WebSocket.html +673 -0
  79. data/docs/Puppeteer/WebSocket/DriverImpl.html +412 -0
  80. data/docs/Puppeteer/WebSocketTransport.html +600 -0
  81. data/docs/Puppeteer/WebSocktTransportError.html +124 -0
  82. data/docs/_index.html +788 -0
  83. data/docs/class_list.html +51 -0
  84. data/docs/css/common.css +1 -0
  85. data/docs/css/full_list.css +58 -0
  86. data/docs/css/style.css +496 -0
  87. data/docs/file.README.html +121 -0
  88. data/docs/file_list.html +56 -0
  89. data/docs/frames.html +17 -0
  90. data/docs/index.html +121 -0
  91. data/docs/js/app.js +314 -0
  92. data/docs/js/full_list.js +216 -0
  93. data/docs/js/jquery.js +4 -0
  94. data/docs/method_list.html +3747 -0
  95. data/docs/top-level-namespace.html +126 -0
  96. data/lib/puppeteer.rb +9 -7
  97. data/lib/puppeteer/async_await_behavior.rb +6 -0
  98. data/lib/puppeteer/browser.rb +21 -1
  99. data/lib/puppeteer/connection.rb +1 -1
  100. data/lib/puppeteer/dom_world.rb +15 -2
  101. data/lib/puppeteer/element_handle.rb +3 -2
  102. data/lib/puppeteer/frame.rb +4 -0
  103. data/lib/puppeteer/frame_manager.rb +1 -1
  104. data/lib/puppeteer/js_handle.rb +3 -2
  105. data/lib/puppeteer/launcher.rb +0 -1
  106. data/lib/puppeteer/lifecycle_watcher.rb +3 -3
  107. data/lib/puppeteer/page.rb +6 -4
  108. data/lib/puppeteer/version.rb +1 -1
  109. data/puppeteer-ruby.gemspec +4 -1
  110. metadata +138 -4
@@ -0,0 +1,433 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Puppeteer::ConsoleMessage::Location
8
+
9
+ &mdash; Documentation by YARD 0.9.24
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Puppeteer::ConsoleMessage::Location";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (L)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../ConsoleMessage.html" title="Puppeteer::ConsoleMessage (class)">ConsoleMessage</a></span></span>
41
+ &raquo;
42
+ <span class="title">Location</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Puppeteer::ConsoleMessage::Location
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Puppeteer::ConsoleMessage::Location</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/puppeteer/console_message.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+
103
+
104
+
105
+
106
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
107
+ <ul class="summary">
108
+
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#column_number-instance_method" title="#column_number (instance method)">#<strong>column_number</strong> &#x21d2; Object </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+ <span class="note title readonly">readonly</span>
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <span class="summary_desc"><div class='inline'>
132
+ <p>Returns the value of attribute column_number.</p>
133
+ </div></span>
134
+
135
+ </li>
136
+
137
+
138
+ <li class="public ">
139
+ <span class="summary_signature">
140
+
141
+ <a href="#line_number-instance_method" title="#line_number (instance method)">#<strong>line_number</strong> &#x21d2; Object </a>
142
+
143
+
144
+
145
+ </span>
146
+
147
+
148
+
149
+
150
+ <span class="note title readonly">readonly</span>
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ <span class="summary_desc"><div class='inline'>
161
+ <p>Returns the value of attribute line_number.</p>
162
+ </div></span>
163
+
164
+ </li>
165
+
166
+
167
+ <li class="public ">
168
+ <span class="summary_signature">
169
+
170
+ <a href="#url-instance_method" title="#url (instance method)">#<strong>url</strong> &#x21d2; Object </a>
171
+
172
+
173
+
174
+ </span>
175
+
176
+
177
+
178
+
179
+ <span class="note title readonly">readonly</span>
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+ <span class="summary_desc"><div class='inline'>
190
+ <p>Returns the value of attribute url.</p>
191
+ </div></span>
192
+
193
+ </li>
194
+
195
+
196
+ </ul>
197
+
198
+
199
+
200
+
201
+
202
+ <h2>
203
+ Instance Method Summary
204
+ <small><a href="#" class="summary_toggle">collapse</a></small>
205
+ </h2>
206
+
207
+ <ul class="summary">
208
+
209
+ <li class="public ">
210
+ <span class="summary_signature">
211
+
212
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(url:, line_number:, column_number: nil) &#x21d2; Location </a>
213
+
214
+
215
+
216
+ </span>
217
+
218
+
219
+ <span class="note title constructor">constructor</span>
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+ <span class="summary_desc"><div class='inline'>
229
+ <p>A new instance of Location.</p>
230
+ </div></span>
231
+
232
+ </li>
233
+
234
+
235
+ </ul>
236
+
237
+
238
+ <div id="constructor_details" class="method_details_list">
239
+ <h2>Constructor Details</h2>
240
+
241
+ <div class="method_details first">
242
+ <h3 class="signature first" id="initialize-instance_method">
243
+
244
+ #<strong>initialize</strong>(url:, line_number:, column_number: nil) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::ConsoleMessage::Location (class)">Location</a></span></tt>
245
+
246
+
247
+
248
+
249
+
250
+ </h3><div class="docstring">
251
+ <div class="discussion">
252
+
253
+ <p>Returns a new instance of Location.</p>
254
+
255
+
256
+ </div>
257
+ </div>
258
+ <div class="tags">
259
+
260
+
261
+ </div><table class="source_code">
262
+ <tr>
263
+ <td>
264
+ <pre class="lines">
265
+
266
+
267
+ 3
268
+ 4
269
+ 5
270
+ 6
271
+ 7</pre>
272
+ </td>
273
+ <td>
274
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/console_message.rb', line 3</span>
275
+
276
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>url:</span><span class='comma'>,</span> <span class='label'>line_number:</span><span class='comma'>,</span> <span class='label'>column_number:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
277
+ <span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
278
+ <span class='ivar'>@line_number</span> <span class='op'>=</span> <span class='id identifier rubyid_line_number'>line_number</span>
279
+ <span class='ivar'>@column_number</span> <span class='op'>=</span> <span class='id identifier rubyid_column_number'>column_number</span>
280
+ <span class='kw'>end</span></pre>
281
+ </td>
282
+ </tr>
283
+ </table>
284
+ </div>
285
+
286
+ </div>
287
+
288
+ <div id="instance_attr_details" class="attr_details">
289
+ <h2>Instance Attribute Details</h2>
290
+
291
+
292
+ <span id=""></span>
293
+ <div class="method_details first">
294
+ <h3 class="signature first" id="column_number-instance_method">
295
+
296
+ #<strong>column_number</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
297
+
298
+
299
+
300
+
301
+
302
+ </h3><div class="docstring">
303
+ <div class="discussion">
304
+
305
+ <p>Returns the value of attribute column_number.</p>
306
+
307
+
308
+ </div>
309
+ </div>
310
+ <div class="tags">
311
+
312
+
313
+ </div><table class="source_code">
314
+ <tr>
315
+ <td>
316
+ <pre class="lines">
317
+
318
+
319
+ 9
320
+ 10
321
+ 11</pre>
322
+ </td>
323
+ <td>
324
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/console_message.rb', line 9</span>
325
+
326
+ <span class='kw'>def</span> <span class='id identifier rubyid_column_number'>column_number</span>
327
+ <span class='ivar'>@column_number</span>
328
+ <span class='kw'>end</span></pre>
329
+ </td>
330
+ </tr>
331
+ </table>
332
+ </div>
333
+
334
+
335
+ <span id=""></span>
336
+ <div class="method_details ">
337
+ <h3 class="signature " id="line_number-instance_method">
338
+
339
+ #<strong>line_number</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
340
+
341
+
342
+
343
+
344
+
345
+ </h3><div class="docstring">
346
+ <div class="discussion">
347
+
348
+ <p>Returns the value of attribute line_number.</p>
349
+
350
+
351
+ </div>
352
+ </div>
353
+ <div class="tags">
354
+
355
+
356
+ </div><table class="source_code">
357
+ <tr>
358
+ <td>
359
+ <pre class="lines">
360
+
361
+
362
+ 9
363
+ 10
364
+ 11</pre>
365
+ </td>
366
+ <td>
367
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/console_message.rb', line 9</span>
368
+
369
+ <span class='kw'>def</span> <span class='id identifier rubyid_line_number'>line_number</span>
370
+ <span class='ivar'>@line_number</span>
371
+ <span class='kw'>end</span></pre>
372
+ </td>
373
+ </tr>
374
+ </table>
375
+ </div>
376
+
377
+
378
+ <span id=""></span>
379
+ <div class="method_details ">
380
+ <h3 class="signature " id="url-instance_method">
381
+
382
+ #<strong>url</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
383
+
384
+
385
+
386
+
387
+
388
+ </h3><div class="docstring">
389
+ <div class="discussion">
390
+
391
+ <p>Returns the value of attribute url.</p>
392
+
393
+
394
+ </div>
395
+ </div>
396
+ <div class="tags">
397
+
398
+
399
+ </div><table class="source_code">
400
+ <tr>
401
+ <td>
402
+ <pre class="lines">
403
+
404
+
405
+ 9
406
+ 10
407
+ 11</pre>
408
+ </td>
409
+ <td>
410
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/console_message.rb', line 9</span>
411
+
412
+ <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
413
+ <span class='ivar'>@url</span>
414
+ <span class='kw'>end</span></pre>
415
+ </td>
416
+ </tr>
417
+ </table>
418
+ </div>
419
+
420
+ </div>
421
+
422
+
423
+ </div>
424
+
425
+ <div id="footer">
426
+ Generated on Sun Apr 26 15:52:57 2020 by
427
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
428
+ 0.9.24 (ruby-2.6.3).
429
+ </div>
430
+
431
+ </div>
432
+ </body>
433
+ </html>
@@ -0,0 +1,1580 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Puppeteer::DOMWorld
8
+
9
+ &mdash; Documentation by YARD 0.9.24
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Puppeteer::DOMWorld";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (D)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span>
41
+ &raquo;
42
+ <span class="title">DOMWorld</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Puppeteer::DOMWorld
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Puppeteer::DOMWorld</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/puppeteer/dom_world.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p><a href="https://github.com/puppeteer/puppeteer/blob/master/src/DOMWorld.js">github.com/puppeteer/puppeteer/blob/master/src/DOMWorld.js</a></p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div><h2>Defined Under Namespace</h2>
114
+ <p class="children">
115
+
116
+
117
+
118
+
119
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="DOMWorld/DetachedError.html" title="Puppeteer::DOMWorld::DetachedError (class)">DetachedError</a></span>, <span class='object_link'><a href="DOMWorld/DocumentEvaluationError.html" title="Puppeteer::DOMWorld::DocumentEvaluationError (class)">DocumentEvaluationError</a></span>
120
+
121
+
122
+ </p>
123
+
124
+
125
+
126
+
127
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
128
+ <ul class="summary">
129
+
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#frame-instance_method" title="#frame (instance method)">#<strong>frame</strong> &#x21d2; Object </a>
134
+
135
+
136
+
137
+ </span>
138
+
139
+
140
+
141
+
142
+ <span class="note title readonly">readonly</span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ <span class="summary_desc"><div class='inline'>
153
+ <p>Returns the value of attribute frame.</p>
154
+ </div></span>
155
+
156
+ </li>
157
+
158
+
159
+ </ul>
160
+
161
+
162
+
163
+
164
+
165
+ <h2>
166
+ Instance Method Summary
167
+ <small><a href="#" class="summary_toggle">collapse</a></small>
168
+ </h2>
169
+
170
+ <ul class="summary">
171
+
172
+ <li class="public ">
173
+ <span class="summary_signature">
174
+
175
+ <a href="#click-instance_method" title="#click (instance method)">#<strong>click</strong>(selector, delay: nil, button: nil, click_count: nil) &#x21d2; Object </a>
176
+
177
+
178
+
179
+ </span>
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+ <span class="summary_desc"><div class='inline'></div></span>
190
+
191
+ </li>
192
+
193
+
194
+ <li class="public ">
195
+ <span class="summary_signature">
196
+
197
+ <a href="#context=-instance_method" title="#context= (instance method)">#<strong>context=</strong>(context) &#x21d2; Object </a>
198
+
199
+
200
+
201
+ </span>
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <span class="summary_desc"><div class='inline'></div></span>
212
+
213
+ </li>
214
+
215
+
216
+ <li class="public ">
217
+ <span class="summary_signature">
218
+
219
+ <a href="#delete_context-instance_method" title="#delete_context (instance method)">#<strong>delete_context</strong>(execution_context_id) &#x21d2; Object </a>
220
+
221
+
222
+
223
+ </span>
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ <span class="summary_desc"><div class='inline'></div></span>
234
+
235
+ </li>
236
+
237
+
238
+ <li class="public ">
239
+ <span class="summary_signature">
240
+
241
+ <a href="#detach-instance_method" title="#detach (instance method)">#<strong>detach</strong> &#x21d2; Object </a>
242
+
243
+
244
+
245
+ </span>
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+ <span class="summary_desc"><div class='inline'></div></span>
256
+
257
+ </li>
258
+
259
+
260
+ <li class="public ">
261
+ <span class="summary_signature">
262
+
263
+ <a href="#evaluate-instance_method" title="#evaluate (instance method)">#<strong>evaluate</strong>(page_function, *args) &#x21d2; !Promise&lt;*&gt; </a>
264
+
265
+
266
+
267
+ </span>
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+ <span class="summary_desc"><div class='inline'></div></span>
278
+
279
+ </li>
280
+
281
+
282
+ <li class="public ">
283
+ <span class="summary_signature">
284
+
285
+ <a href="#evaluate_handle-instance_method" title="#evaluate_handle (instance method)">#<strong>evaluate_handle</strong>(page_function, *args) &#x21d2; !Promise&lt;!Puppeteer.JSHandle&gt; </a>
286
+
287
+
288
+
289
+ </span>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+ <span class="summary_desc"><div class='inline'></div></span>
300
+
301
+ </li>
302
+
303
+
304
+ <li class="public ">
305
+ <span class="summary_signature">
306
+
307
+ <a href="#execution_context-instance_method" title="#execution_context (instance method)">#<strong>execution_context</strong> &#x21d2; !Promise&lt;!Puppeteer.ExecutionContext&gt; </a>
308
+
309
+
310
+
311
+ </span>
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+ <span class="summary_desc"><div class='inline'></div></span>
322
+
323
+ </li>
324
+
325
+
326
+ <li class="public ">
327
+ <span class="summary_signature">
328
+
329
+ <a href="#has_context%3F-instance_method" title="#has_context? (instance method)">#<strong>has_context?</strong> &#x21d2; Boolean </a>
330
+
331
+
332
+
333
+ </span>
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ <span class="summary_desc"><div class='inline'></div></span>
344
+
345
+ </li>
346
+
347
+
348
+ <li class="public ">
349
+ <span class="summary_signature">
350
+
351
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(frame_manager, frame, timeout_settings) &#x21d2; DOMWorld </a>
352
+
353
+
354
+
355
+ </span>
356
+
357
+
358
+ <span class="note title constructor">constructor</span>
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+ <span class="summary_desc"><div class='inline'>
368
+ <p>A new instance of DOMWorld.</p>
369
+ </div></span>
370
+
371
+ </li>
372
+
373
+
374
+ <li class="public ">
375
+ <span class="summary_signature">
376
+
377
+ <a href="#S-instance_method" title="#S (instance method)">#<strong>S</strong>(selector) &#x21d2; !Promise&lt;?Puppeteer.ElementHandle&gt; </a>
378
+
379
+
380
+
381
+ </span>
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+ <span class="summary_desc"><div class='inline'>
392
+ <p>`$()` in JavaScript.</p>
393
+ </div></span>
394
+
395
+ </li>
396
+
397
+
398
+ <li class="public ">
399
+ <span class="summary_signature">
400
+
401
+ <a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) &#x21d2; !Promise&lt;(!Object|undefined)&gt; </a>
402
+
403
+
404
+
405
+ </span>
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+ <span class="summary_desc"><div class='inline'>
416
+ <p>`$eval()` in JavaScript.</p>
417
+ </div></span>
418
+
419
+ </li>
420
+
421
+
422
+ <li class="public ">
423
+ <span class="summary_signature">
424
+
425
+ <a href="#SS-instance_method" title="#SS (instance method)">#<strong>SS</strong>(selector) &#x21d2; !Promise&lt;!Array&lt;!Puppeteer.ElementHandle&gt;&gt; </a>
426
+
427
+
428
+
429
+ </span>
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+ <span class="summary_desc"><div class='inline'>
440
+ <p>`$$()` in JavaScript.</p>
441
+ </div></span>
442
+
443
+ </li>
444
+
445
+
446
+ <li class="public ">
447
+ <span class="summary_signature">
448
+
449
+ <a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; !Promise&lt;(!Object|undefined)&gt; </a>
450
+
451
+
452
+
453
+ </span>
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+ <span class="summary_desc"><div class='inline'>
464
+ <p>`$$eval()` in JavaScript.</p>
465
+ </div></span>
466
+
467
+ </li>
468
+
469
+
470
+ <li class="public ">
471
+ <span class="summary_signature">
472
+
473
+ <a href="#Sx-instance_method" title="#Sx (instance method)">#<strong>Sx</strong>(expression) &#x21d2; !Promise&lt;!Array&lt;!Puppeteer.ElementHandle&gt;&gt; </a>
474
+
475
+
476
+
477
+ </span>
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+ <span class="summary_desc"><div class='inline'>
488
+ <p>`$x()` in JavaScript.</p>
489
+ </div></span>
490
+
491
+ </li>
492
+
493
+
494
+ </ul>
495
+
496
+
497
+ <div id="constructor_details" class="method_details_list">
498
+ <h2>Constructor Details</h2>
499
+
500
+ <div class="method_details first">
501
+ <h3 class="signature first" id="initialize-instance_method">
502
+
503
+ #<strong>initialize</strong>(frame_manager, frame, timeout_settings) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::DOMWorld (class)">DOMWorld</a></span></tt>
504
+
505
+
506
+
507
+
508
+
509
+ </h3><div class="docstring">
510
+ <div class="discussion">
511
+
512
+ <p>Returns a new instance of DOMWorld.</p>
513
+
514
+
515
+ </div>
516
+ </div>
517
+ <div class="tags">
518
+ <p class="tag_title">Parameters:</p>
519
+ <ul class="param">
520
+
521
+ <li>
522
+
523
+ <span class='name'>frameManager</span>
524
+
525
+
526
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="FrameManager.html" title="Puppeteer::FrameManager (class)">FrameManager</a></span></tt>)</span>
527
+
528
+
529
+
530
+ </li>
531
+
532
+ <li>
533
+
534
+ <span class='name'>frame</span>
535
+
536
+
537
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="Frame.html" title="Puppeteer::Frame (class)">Frame</a></span></tt>)</span>
538
+
539
+
540
+
541
+ </li>
542
+
543
+ <li>
544
+
545
+ <span class='name'>timeoutSettings</span>
546
+
547
+
548
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="TimeoutSettings.html" title="Puppeteer::TimeoutSettings (class)">TimeoutSettings</a></span></tt>)</span>
549
+
550
+
551
+
552
+ </li>
553
+
554
+ </ul>
555
+
556
+
557
+ </div><table class="source_code">
558
+ <tr>
559
+ <td>
560
+ <pre class="lines">
561
+
562
+
563
+ 10
564
+ 11
565
+ 12
566
+ 13
567
+ 14
568
+ 15
569
+ 16
570
+ 17
571
+ 18</pre>
572
+ </td>
573
+ <td>
574
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 10</span>
575
+
576
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='comma'>,</span> <span class='id identifier rubyid_frame'>frame</span><span class='comma'>,</span> <span class='id identifier rubyid_timeout_settings'>timeout_settings</span><span class='rparen'>)</span>
577
+ <span class='ivar'>@frame_manager</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span>
578
+ <span class='ivar'>@frame</span> <span class='op'>=</span> <span class='id identifier rubyid_frame'>frame</span>
579
+ <span class='ivar'>@timeout_settings</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout_settings'>timeout_settings</span>
580
+ <span class='ivar'>@context_promise</span> <span class='op'>=</span> <span class='id identifier rubyid_resolvable_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#resolvable_future-instance_method" title="Puppeteer::ConcurrentRubyUtils#resolvable_future (method)">resolvable_future</a></span></span>
581
+ <span class='ivar'>@pending_destroy</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
582
+ <span class='ivar'>@wait_tasks</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
583
+ <span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>false</span>
584
+ <span class='kw'>end</span></pre>
585
+ </td>
586
+ </tr>
587
+ </table>
588
+ </div>
589
+
590
+ </div>
591
+
592
+ <div id="instance_attr_details" class="attr_details">
593
+ <h2>Instance Attribute Details</h2>
594
+
595
+
596
+ <span id=""></span>
597
+ <div class="method_details first">
598
+ <h3 class="signature first" id="frame-instance_method">
599
+
600
+ #<strong>frame</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
601
+
602
+
603
+
604
+
605
+
606
+ </h3><div class="docstring">
607
+ <div class="discussion">
608
+
609
+ <p>Returns the value of attribute frame.</p>
610
+
611
+
612
+ </div>
613
+ </div>
614
+ <div class="tags">
615
+
616
+
617
+ </div><table class="source_code">
618
+ <tr>
619
+ <td>
620
+ <pre class="lines">
621
+
622
+
623
+ 20
624
+ 21
625
+ 22</pre>
626
+ </td>
627
+ <td>
628
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 20</span>
629
+
630
+ <span class='kw'>def</span> <span class='id identifier rubyid_frame'>frame</span>
631
+ <span class='ivar'>@frame</span>
632
+ <span class='kw'>end</span></pre>
633
+ </td>
634
+ </tr>
635
+ </table>
636
+ </div>
637
+
638
+ </div>
639
+
640
+
641
+ <div id="instance_method_details" class="method_details_list">
642
+ <h2>Instance Method Details</h2>
643
+
644
+
645
+ <div class="method_details first">
646
+ <h3 class="signature first" id="click-instance_method">
647
+
648
+ #<strong>click</strong>(selector, delay: nil, button: nil, click_count: nil) &#x21d2; <tt>Object</tt>
649
+
650
+
651
+
652
+
653
+
654
+ </h3><div class="docstring">
655
+ <div class="discussion">
656
+
657
+
658
+ </div>
659
+ </div>
660
+ <div class="tags">
661
+ <p class="tag_title">Parameters:</p>
662
+ <ul class="param">
663
+
664
+ <li>
665
+
666
+ <span class='name'>selector</span>
667
+
668
+
669
+ <span class='type'>(<tt>String</tt>)</span>
670
+
671
+
672
+
673
+ </li>
674
+
675
+ <li>
676
+
677
+ <span class='name'>delay</span>
678
+
679
+
680
+ <span class='type'>(<tt>Number</tt>)</span>
681
+
682
+
683
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
684
+
685
+
686
+ </li>
687
+
688
+ <li>
689
+
690
+ <span class='name'>button</span>
691
+
692
+
693
+ <span class='type'>(<tt>String</tt>)</span>
694
+
695
+
696
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
697
+
698
+
699
+ &mdash;
700
+ <div class='inline'>
701
+ <p>“left”|“right”|“middle”</p>
702
+ </div>
703
+
704
+ </li>
705
+
706
+ <li>
707
+
708
+ <span class='name'>click_count</span>
709
+
710
+
711
+ <span class='type'>(<tt>Number</tt>)</span>
712
+
713
+
714
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
715
+
716
+
717
+ </li>
718
+
719
+ </ul>
720
+
721
+
722
+ </div><table class="source_code">
723
+ <tr>
724
+ <td>
725
+ <pre class="lines">
726
+
727
+
728
+ 328
729
+ 329
730
+ 330
731
+ 331
732
+ 332</pre>
733
+ </td>
734
+ <td>
735
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 328</span>
736
+
737
+ <span class='kw'>def</span> <span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
738
+ <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#S-instance_method" title="Puppeteer::DOMWorld#S (method)">S</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
739
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
740
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_dispose'>dispose</span>
741
+ <span class='kw'>end</span></pre>
742
+ </td>
743
+ </tr>
744
+ </table>
745
+ </div>
746
+
747
+ <div class="method_details ">
748
+ <h3 class="signature " id="context=-instance_method">
749
+
750
+ #<strong>context=</strong>(context) &#x21d2; <tt>Object</tt>
751
+
752
+
753
+
754
+
755
+
756
+ </h3><div class="docstring">
757
+ <div class="discussion">
758
+
759
+
760
+ </div>
761
+ </div>
762
+ <div class="tags">
763
+ <p class="tag_title">Parameters:</p>
764
+ <ul class="param">
765
+
766
+ <li>
767
+
768
+ <span class='name'>context</span>
769
+
770
+
771
+ <span class='type'>(<tt>?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ExecutionContext.html" title="Puppeteer::ExecutionContext (class)">ExecutionContext</a></span></tt>)</span>
772
+
773
+
774
+
775
+ </li>
776
+
777
+ </ul>
778
+
779
+
780
+ </div><table class="source_code">
781
+ <tr>
782
+ <td>
783
+ <pre class="lines">
784
+
785
+
786
+ 23
787
+ 24
788
+ 25
789
+ 26
790
+ 27
791
+ 28
792
+ 29
793
+ 30
794
+ 31
795
+ 32
796
+ 33
797
+ 34
798
+ 35
799
+ 36
800
+ 37
801
+ 38
802
+ 39
803
+ 40
804
+ 41
805
+ 42
806
+ 43</pre>
807
+ </td>
808
+ <td>
809
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 23</span>
810
+
811
+ <span class='kw'>def</span> <span class='id identifier rubyid_context='>context=</span><span class='lparen'>(</span><span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
812
+ <span class='comment'># D, [2020-04-12T22:45:03.938754 #46154] DEBUG -- : RECV &lt;&lt; {&quot;method&quot;=&gt;&quot;Runtime.executionContextCreated&quot;, &quot;params&quot;=&gt;{&quot;context&quot;=&gt;{&quot;id&quot;=&gt;3, &quot;origin&quot;=&gt;&quot;https://github.com&quot;, &quot;name&quot;=&gt;&quot;&quot;, &quot;auxData&quot;=&gt;{&quot;isDefault&quot;=&gt;true, &quot;type&quot;=&gt;&quot;default&quot;, &quot;frameId&quot;=&gt;&quot;3AD7F1E82BCBA88BFE31D03BC49FF6CB&quot;}}}, &quot;sessionId&quot;=&gt;&quot;636CEF0C4FEAFC4FE815E9E7B5F7BA68&quot;}
813
+ </span> <span class='comment'># D, [2020-04-12T22:45:03.938856 #46154] DEBUG -- : RECV &lt;&lt; {&quot;method&quot;=&gt;&quot;Runtime.executionContextCreated&quot;, &quot;params&quot;=&gt;{&quot;context&quot;=&gt;{&quot;id&quot;=&gt;4, &quot;origin&quot;=&gt;&quot;://&quot;, &quot;name&quot;=&gt;&quot;__puppeteer_utility_world__&quot;, &quot;auxData&quot;=&gt;{&quot;isDefault&quot;=&gt;false, &quot;type&quot;=&gt;&quot;isolated&quot;, &quot;frameId&quot;=&gt;&quot;3AD7F1E82BCBA88BFE31D03BC49FF6CB&quot;}}}, &quot;sessionId&quot;=&gt;&quot;636CEF0C4FEAFC4FE815E9E7B5F7BA68&quot;}
814
+ </span> <span class='comment'># D, [2020-04-12T22:45:03.938960 #46154] DEBUG -- : RECV &lt;&lt; {&quot;method&quot;=&gt;&quot;Runtime.executionContextDestroyed&quot;, &quot;params&quot;=&gt;{&quot;executionContextId&quot;=&gt;1}, &quot;sessionId&quot;=&gt;&quot;636CEF0C4FEAFC4FE815E9E7B5F7BA68&quot;}
815
+ </span> <span class='comment'># D, [2020-04-12T22:45:03.939110 #46154] DEBUG -- : RECV &lt;&lt; {&quot;method&quot;=&gt;&quot;Page.frameNavigated&quot;, &quot;params&quot;=&gt;{&quot;frame&quot;=&gt;{&quot;id&quot;=&gt;&quot;3AD7F1E82BCBA88BFE31D03BC49FF6CB&quot;, &quot;loaderId&quot;=&gt;&quot;301B349884E582986C502CBE020966DF&quot;, &quot;url&quot;=&gt;&quot;https://github.com/&quot;, &quot;securityOrigin&quot;=&gt;&quot;https://github.com&quot;, &quot;mimeType&quot;=&gt;&quot;text/html&quot;}}, &quot;sessionId&quot;=&gt;&quot;636CEF0C4FEAFC4FE815E9E7B5F7BA68&quot;}
816
+ </span> <span class='comment'># D, [2020-04-12T22:45:03.939793 #46154] DEBUG -- : RECV &lt;&lt; {&quot;method&quot;=&gt;&quot;Runtime.executionContextDestroyed&quot;, &quot;params&quot;=&gt;{&quot;executionContextId&quot;=&gt;2}, &quot;sessionId&quot;=&gt;&quot;636CEF0C4FEAFC4FE815E9E7B5F7BA68&quot;}
817
+ </span> <span class='comment'># executionContextDestroyed is often notified after executionContextCreated.
818
+ </span>
819
+ <span class='kw'>if</span> <span class='id identifier rubyid_context'>context</span>
820
+ <span class='kw'>if</span> <span class='ivar'>@context_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfilled?'>fulfilled?</span>
821
+ <span class='ivar'>@pending_destroy</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid__context_id'>_context_id</span>
822
+ <span class='ivar'>@document</span> <span class='op'>=</span> <span class='kw'>nil</span>
823
+ <span class='ivar'>@context_promise</span> <span class='op'>=</span> <span class='id identifier rubyid_resolvable_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#resolvable_future-instance_method" title="Puppeteer::ConcurrentRubyUtils#resolvable_future (method)">resolvable_future</a></span></span>
824
+ <span class='kw'>end</span>
825
+ <span class='ivar'>@context_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
826
+ <span class='comment'># for (const waitTask of this._waitTasks)
827
+ </span> <span class='comment'># waitTask.rerun();
828
+ </span> <span class='kw'>else</span>
829
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>context should now be nil. Use #delete_context for clearing document.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
830
+ <span class='kw'>end</span>
831
+ <span class='kw'>end</span></pre>
832
+ </td>
833
+ </tr>
834
+ </table>
835
+ </div>
836
+
837
+ <div class="method_details ">
838
+ <h3 class="signature " id="delete_context-instance_method">
839
+
840
+ #<strong>delete_context</strong>(execution_context_id) &#x21d2; <tt>Object</tt>
841
+
842
+
843
+
844
+
845
+
846
+ </h3><table class="source_code">
847
+ <tr>
848
+ <td>
849
+ <pre class="lines">
850
+
851
+
852
+ 45
853
+ 46
854
+ 47
855
+ 48
856
+ 49
857
+ 50
858
+ 51
859
+ 52</pre>
860
+ </td>
861
+ <td>
862
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 45</span>
863
+
864
+ <span class='kw'>def</span> <span class='id identifier rubyid_delete_context'>delete_context</span><span class='lparen'>(</span><span class='id identifier rubyid_execution_context_id'>execution_context_id</span><span class='rparen'>)</span>
865
+ <span class='kw'>if</span> <span class='ivar'>@pending_destroy</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_execution_context_id'>execution_context_id</span><span class='rparen'>)</span>
866
+ <span class='ivar'>@pending_destroy</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_execution_context_id'>execution_context_id</span><span class='rparen'>)</span>
867
+ <span class='kw'>else</span>
868
+ <span class='ivar'>@document</span> <span class='op'>=</span> <span class='kw'>nil</span>
869
+ <span class='ivar'>@context_promise</span> <span class='op'>=</span> <span class='id identifier rubyid_resolvable_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#resolvable_future-instance_method" title="Puppeteer::ConcurrentRubyUtils#resolvable_future (method)">resolvable_future</a></span></span>
870
+ <span class='kw'>end</span>
871
+ <span class='kw'>end</span></pre>
872
+ </td>
873
+ </tr>
874
+ </table>
875
+ </div>
876
+
877
+ <div class="method_details ">
878
+ <h3 class="signature " id="detach-instance_method">
879
+
880
+ #<strong>detach</strong> &#x21d2; <tt>Object</tt>
881
+
882
+
883
+
884
+
885
+
886
+ </h3><table class="source_code">
887
+ <tr>
888
+ <td>
889
+ <pre class="lines">
890
+
891
+
892
+ 58
893
+ 59
894
+ 60
895
+ 61
896
+ 62
897
+ 63</pre>
898
+ </td>
899
+ <td>
900
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 58</span>
901
+
902
+ <span class='kw'>def</span> <span class='id identifier rubyid_detach'>detach</span>
903
+ <span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>true</span>
904
+ <span class='ivar'>@wait_tasks</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_wait_task'>wait_task</span><span class='op'>|</span>
905
+ <span class='id identifier rubyid_wait_task'>wait_task</span><span class='period'>.</span><span class='id identifier rubyid_terminate'>terminate</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WaitTask.html" title="Puppeteer::WaitTask (class)">WaitTask</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WaitTask/TerminatedError.html" title="Puppeteer::WaitTask::TerminatedError (class)">TerminatedError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="WaitTask.html#initialize-instance_method" title="Puppeteer::WaitTask#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>waitForFunction failed: frame got detached.</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
906
+ <span class='kw'>end</span>
907
+ <span class='kw'>end</span></pre>
908
+ </td>
909
+ </tr>
910
+ </table>
911
+ </div>
912
+
913
+ <div class="method_details ">
914
+ <h3 class="signature " id="evaluate-instance_method">
915
+
916
+ #<strong>evaluate</strong>(page_function, *args) &#x21d2; <tt>!Promise&lt;*&gt;</tt>
917
+
918
+
919
+
920
+
921
+
922
+ </h3><div class="docstring">
923
+ <div class="discussion">
924
+
925
+
926
+ </div>
927
+ </div>
928
+ <div class="tags">
929
+ <p class="tag_title">Parameters:</p>
930
+ <ul class="param">
931
+
932
+ <li>
933
+
934
+ <span class='name'>pageFunction</span>
935
+
936
+
937
+ <span class='type'>(<tt>Function|string</tt>)</span>
938
+
939
+
940
+
941
+ </li>
942
+
943
+ <li>
944
+
945
+ <span class='name'>args</span>
946
+
947
+
948
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
949
+
950
+
951
+
952
+ </li>
953
+
954
+ </ul>
955
+
956
+ <p class="tag_title">Returns:</p>
957
+ <ul class="return">
958
+
959
+ <li>
960
+
961
+
962
+ <span class='type'>(<tt>!Promise&lt;*&gt;</tt>)</span>
963
+
964
+
965
+
966
+ </li>
967
+
968
+ </ul>
969
+
970
+ </div><table class="source_code">
971
+ <tr>
972
+ <td>
973
+ <pre class="lines">
974
+
975
+
976
+ 85
977
+ 86
978
+ 87</pre>
979
+ </td>
980
+ <td>
981
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 85</span>
982
+
983
+ <span class='kw'>def</span> <span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
984
+ <span class='id identifier rubyid_execution_context'>execution_context</span><span class='period'>.</span><span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
985
+ <span class='kw'>end</span></pre>
986
+ </td>
987
+ </tr>
988
+ </table>
989
+ </div>
990
+
991
+ <div class="method_details ">
992
+ <h3 class="signature " id="evaluate_handle-instance_method">
993
+
994
+ #<strong>evaluate_handle</strong>(page_function, *args) &#x21d2; <tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>&gt;</tt>
995
+
996
+
997
+
998
+
999
+
1000
+ </h3><div class="docstring">
1001
+ <div class="discussion">
1002
+
1003
+
1004
+ </div>
1005
+ </div>
1006
+ <div class="tags">
1007
+ <p class="tag_title">Parameters:</p>
1008
+ <ul class="param">
1009
+
1010
+ <li>
1011
+
1012
+ <span class='name'>pageFunction</span>
1013
+
1014
+
1015
+ <span class='type'>(<tt>Function|string</tt>)</span>
1016
+
1017
+
1018
+
1019
+ </li>
1020
+
1021
+ <li>
1022
+
1023
+ <span class='name'>args</span>
1024
+
1025
+
1026
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
1027
+
1028
+
1029
+
1030
+ </li>
1031
+
1032
+ </ul>
1033
+
1034
+ <p class="tag_title">Returns:</p>
1035
+ <ul class="return">
1036
+
1037
+ <li>
1038
+
1039
+
1040
+ <span class='type'>(<tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>&gt;</tt>)</span>
1041
+
1042
+
1043
+
1044
+ </li>
1045
+
1046
+ </ul>
1047
+
1048
+ </div><table class="source_code">
1049
+ <tr>
1050
+ <td>
1051
+ <pre class="lines">
1052
+
1053
+
1054
+ 78
1055
+ 79
1056
+ 80</pre>
1057
+ </td>
1058
+ <td>
1059
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 78</span>
1060
+
1061
+ <span class='kw'>def</span> <span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1062
+ <span class='id identifier rubyid_execution_context'>execution_context</span><span class='period'>.</span><span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1063
+ <span class='kw'>end</span></pre>
1064
+ </td>
1065
+ </tr>
1066
+ </table>
1067
+ </div>
1068
+
1069
+ <div class="method_details ">
1070
+ <h3 class="signature " id="execution_context-instance_method">
1071
+
1072
+ #<strong>execution_context</strong> &#x21d2; <tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ExecutionContext.html" title="Puppeteer::ExecutionContext (class)">ExecutionContext</a></span>&gt;</tt>
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+ </h3><div class="docstring">
1079
+ <div class="discussion">
1080
+
1081
+
1082
+ </div>
1083
+ </div>
1084
+ <div class="tags">
1085
+
1086
+ <p class="tag_title">Returns:</p>
1087
+ <ul class="return">
1088
+
1089
+ <li>
1090
+
1091
+
1092
+ <span class='type'>(<tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ExecutionContext.html" title="Puppeteer::ExecutionContext (class)">ExecutionContext</a></span>&gt;</tt>)</span>
1093
+
1094
+
1095
+
1096
+ </li>
1097
+
1098
+ </ul>
1099
+
1100
+ </div><table class="source_code">
1101
+ <tr>
1102
+ <td>
1103
+ <pre class="lines">
1104
+
1105
+
1106
+ 68
1107
+ 69
1108
+ 70
1109
+ 71
1110
+ 72
1111
+ 73</pre>
1112
+ </td>
1113
+ <td>
1114
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 68</span>
1115
+
1116
+ <span class='kw'>def</span> <span class='id identifier rubyid_execution_context'>execution_context</span>
1117
+ <span class='kw'>if</span> <span class='ivar'>@detached</span>
1118
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="DOMWorld/DetachedError.html" title="Puppeteer::DOMWorld::DetachedError (class)">DetachedError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::DOMWorld#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Execution Context is not available in detached frame \&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@frame</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot; (are you trying to evaluate?)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1119
+ <span class='kw'>end</span>
1120
+ <span class='ivar'>@context_promise</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
1121
+ <span class='kw'>end</span></pre>
1122
+ </td>
1123
+ </tr>
1124
+ </table>
1125
+ </div>
1126
+
1127
+ <div class="method_details ">
1128
+ <h3 class="signature " id="has_context?-instance_method">
1129
+
1130
+ #<strong>has_context?</strong> &#x21d2; <tt>Boolean</tt>
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+ </h3><div class="docstring">
1137
+ <div class="discussion">
1138
+
1139
+
1140
+ </div>
1141
+ </div>
1142
+ <div class="tags">
1143
+
1144
+ <p class="tag_title">Returns:</p>
1145
+ <ul class="return">
1146
+
1147
+ <li>
1148
+
1149
+
1150
+ <span class='type'>(<tt>Boolean</tt>)</span>
1151
+
1152
+
1153
+
1154
+ </li>
1155
+
1156
+ </ul>
1157
+
1158
+ </div><table class="source_code">
1159
+ <tr>
1160
+ <td>
1161
+ <pre class="lines">
1162
+
1163
+
1164
+ 54
1165
+ 55
1166
+ 56</pre>
1167
+ </td>
1168
+ <td>
1169
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 54</span>
1170
+
1171
+ <span class='kw'>def</span> <span class='id identifier rubyid_has_context?'>has_context?</span>
1172
+ <span class='ivar'>@context_promise</span><span class='period'>.</span><span class='id identifier rubyid_resolved?'>resolved?</span>
1173
+ <span class='kw'>end</span></pre>
1174
+ </td>
1175
+ </tr>
1176
+ </table>
1177
+ </div>
1178
+
1179
+ <div class="method_details ">
1180
+ <h3 class="signature " id="S-instance_method">
1181
+
1182
+ #<strong>S</strong>(selector) &#x21d2; <tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+ </h3><div class="docstring">
1189
+ <div class="discussion">
1190
+
1191
+ <p>`$()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
1192
+
1193
+
1194
+ </div>
1195
+ </div>
1196
+ <div class="tags">
1197
+ <p class="tag_title">Parameters:</p>
1198
+ <ul class="param">
1199
+
1200
+ <li>
1201
+
1202
+ <span class='name'>selector</span>
1203
+
1204
+
1205
+ <span class='type'>(<tt>string</tt>)</span>
1206
+
1207
+
1208
+
1209
+ </li>
1210
+
1211
+ </ul>
1212
+
1213
+ <p class="tag_title">Returns:</p>
1214
+ <ul class="return">
1215
+
1216
+ <li>
1217
+
1218
+
1219
+ <span class='type'>(<tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>)</span>
1220
+
1221
+
1222
+
1223
+ </li>
1224
+
1225
+ </ul>
1226
+
1227
+ </div><table class="source_code">
1228
+ <tr>
1229
+ <td>
1230
+ <pre class="lines">
1231
+
1232
+
1233
+ 92
1234
+ 93
1235
+ 94</pre>
1236
+ </td>
1237
+ <td>
1238
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 92</span>
1239
+
1240
+ <span class='kw'>def</span> <span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
1241
+ <span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
1242
+ <span class='kw'>end</span></pre>
1243
+ </td>
1244
+ </tr>
1245
+ </table>
1246
+ </div>
1247
+
1248
+ <div class="method_details ">
1249
+ <h3 class="signature " id="Seval-instance_method">
1250
+
1251
+ #<strong>Seval</strong>(selector, page_function, *args) &#x21d2; <tt>!Promise&lt;(!Object|undefined)&gt;</tt>
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+ </h3><div class="docstring">
1258
+ <div class="discussion">
1259
+
1260
+ <p>`$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
1261
+
1262
+
1263
+ </div>
1264
+ </div>
1265
+ <div class="tags">
1266
+ <p class="tag_title">Parameters:</p>
1267
+ <ul class="param">
1268
+
1269
+ <li>
1270
+
1271
+ <span class='name'>selector</span>
1272
+
1273
+
1274
+ <span class='type'>(<tt>string</tt>)</span>
1275
+
1276
+
1277
+
1278
+ </li>
1279
+
1280
+ <li>
1281
+
1282
+ <span class='name'>pageFunction</span>
1283
+
1284
+
1285
+ <span class='type'>(<tt>Function|string</tt>)</span>
1286
+
1287
+
1288
+
1289
+ </li>
1290
+
1291
+ <li>
1292
+
1293
+ <span class='name'>args</span>
1294
+
1295
+
1296
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
1297
+
1298
+
1299
+
1300
+ </li>
1301
+
1302
+ </ul>
1303
+
1304
+ <p class="tag_title">Returns:</p>
1305
+ <ul class="return">
1306
+
1307
+ <li>
1308
+
1309
+
1310
+ <span class='type'>(<tt>!Promise&lt;(!Object|undefined)&gt;</tt>)</span>
1311
+
1312
+
1313
+
1314
+ </li>
1315
+
1316
+ </ul>
1317
+
1318
+ </div><table class="source_code">
1319
+ <tr>
1320
+ <td>
1321
+ <pre class="lines">
1322
+
1323
+
1324
+ 125
1325
+ 126
1326
+ 127</pre>
1327
+ </td>
1328
+ <td>
1329
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 125</span>
1330
+
1331
+ <span class='kw'>def</span> <span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1332
+ <span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1333
+ <span class='kw'>end</span></pre>
1334
+ </td>
1335
+ </tr>
1336
+ </table>
1337
+ </div>
1338
+
1339
+ <div class="method_details ">
1340
+ <h3 class="signature " id="SS-instance_method">
1341
+
1342
+ #<strong>SS</strong>(selector) &#x21d2; <tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+ </h3><div class="docstring">
1349
+ <div class="discussion">
1350
+
1351
+ <p>`$$()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
1352
+
1353
+
1354
+ </div>
1355
+ </div>
1356
+ <div class="tags">
1357
+ <p class="tag_title">Parameters:</p>
1358
+ <ul class="param">
1359
+
1360
+ <li>
1361
+
1362
+ <span class='name'>selector</span>
1363
+
1364
+
1365
+ <span class='type'>(<tt>string</tt>)</span>
1366
+
1367
+
1368
+
1369
+ </li>
1370
+
1371
+ </ul>
1372
+
1373
+ <p class="tag_title">Returns:</p>
1374
+ <ul class="return">
1375
+
1376
+ <li>
1377
+
1378
+
1379
+ <span class='type'>(<tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>)</span>
1380
+
1381
+
1382
+
1383
+ </li>
1384
+
1385
+ </ul>
1386
+
1387
+ </div><table class="source_code">
1388
+ <tr>
1389
+ <td>
1390
+ <pre class="lines">
1391
+
1392
+
1393
+ 141
1394
+ 142
1395
+ 143</pre>
1396
+ </td>
1397
+ <td>
1398
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 141</span>
1399
+
1400
+ <span class='kw'>def</span> <span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
1401
+ <span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
1402
+ <span class='kw'>end</span></pre>
1403
+ </td>
1404
+ </tr>
1405
+ </table>
1406
+ </div>
1407
+
1408
+ <div class="method_details ">
1409
+ <h3 class="signature " id="SSeval-instance_method">
1410
+
1411
+ #<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; <tt>!Promise&lt;(!Object|undefined)&gt;</tt>
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+ </h3><div class="docstring">
1418
+ <div class="discussion">
1419
+
1420
+ <p>`$$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
1421
+
1422
+
1423
+ </div>
1424
+ </div>
1425
+ <div class="tags">
1426
+ <p class="tag_title">Parameters:</p>
1427
+ <ul class="param">
1428
+
1429
+ <li>
1430
+
1431
+ <span class='name'>selector</span>
1432
+
1433
+
1434
+ <span class='type'>(<tt>string</tt>)</span>
1435
+
1436
+
1437
+
1438
+ </li>
1439
+
1440
+ <li>
1441
+
1442
+ <span class='name'>pageFunction</span>
1443
+
1444
+
1445
+ <span class='type'>(<tt>Function|string</tt>)</span>
1446
+
1447
+
1448
+
1449
+ </li>
1450
+
1451
+ <li>
1452
+
1453
+ <span class='name'>args</span>
1454
+
1455
+
1456
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
1457
+
1458
+
1459
+
1460
+ </li>
1461
+
1462
+ </ul>
1463
+
1464
+ <p class="tag_title">Returns:</p>
1465
+ <ul class="return">
1466
+
1467
+ <li>
1468
+
1469
+
1470
+ <span class='type'>(<tt>!Promise&lt;(!Object|undefined)&gt;</tt>)</span>
1471
+
1472
+
1473
+
1474
+ </li>
1475
+
1476
+ </ul>
1477
+
1478
+ </div><table class="source_code">
1479
+ <tr>
1480
+ <td>
1481
+ <pre class="lines">
1482
+
1483
+
1484
+ 134
1485
+ 135
1486
+ 136</pre>
1487
+ </td>
1488
+ <td>
1489
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 134</span>
1490
+
1491
+ <span class='kw'>def</span> <span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1492
+ <span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1493
+ <span class='kw'>end</span></pre>
1494
+ </td>
1495
+ </tr>
1496
+ </table>
1497
+ </div>
1498
+
1499
+ <div class="method_details ">
1500
+ <h3 class="signature " id="Sx-instance_method">
1501
+
1502
+ #<strong>Sx</strong>(expression) &#x21d2; <tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+ </h3><div class="docstring">
1509
+ <div class="discussion">
1510
+
1511
+ <p>`$x()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
1512
+
1513
+
1514
+ </div>
1515
+ </div>
1516
+ <div class="tags">
1517
+ <p class="tag_title">Parameters:</p>
1518
+ <ul class="param">
1519
+
1520
+ <li>
1521
+
1522
+ <span class='name'>expression</span>
1523
+
1524
+
1525
+ <span class='type'>(<tt>string</tt>)</span>
1526
+
1527
+
1528
+
1529
+ </li>
1530
+
1531
+ </ul>
1532
+
1533
+ <p class="tag_title">Returns:</p>
1534
+ <ul class="return">
1535
+
1536
+ <li>
1537
+
1538
+
1539
+ <span class='type'>(<tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>)</span>
1540
+
1541
+
1542
+
1543
+ </li>
1544
+
1545
+ </ul>
1546
+
1547
+ </div><table class="source_code">
1548
+ <tr>
1549
+ <td>
1550
+ <pre class="lines">
1551
+
1552
+
1553
+ 116
1554
+ 117
1555
+ 118</pre>
1556
+ </td>
1557
+ <td>
1558
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 116</span>
1559
+
1560
+ <span class='kw'>def</span> <span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
1561
+ <span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
1562
+ <span class='kw'>end</span></pre>
1563
+ </td>
1564
+ </tr>
1565
+ </table>
1566
+ </div>
1567
+
1568
+ </div>
1569
+
1570
+ </div>
1571
+
1572
+ <div id="footer">
1573
+ Generated on Sun Apr 26 15:52:57 2020 by
1574
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1575
+ 0.9.24 (ruby-2.6.3).
1576
+ </div>
1577
+
1578
+ </div>
1579
+ </body>
1580
+ </html>