puppeteer-ruby 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/docs/Puppeteer.html +53 -43
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +1 -1
- data/docs/Puppeteer/BrowserContext.html +1 -1
- data/docs/Puppeteer/BrowserFetcher.html +1 -1
- data/docs/Puppeteer/BrowserRunner.html +1 -1
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
- data/docs/Puppeteer/CDPSession.html +1 -1
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
- data/docs/Puppeteer/Connection.html +1 -1
- data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
- data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +1 -1
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +1 -1
- data/docs/Puppeteer/ConsoleMessage.html +1 -1
- data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
- data/docs/Puppeteer/DOMWorld.html +116 -19
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +1 -1
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +565 -141
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
- data/docs/Puppeteer/ElementHandle/Point.html +21 -21
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +1 -1
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +114 -11
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
- data/docs/Puppeteer/FileChooser.html +455 -0
- data/docs/Puppeteer/Frame.html +1 -1
- data/docs/Puppeteer/FrameManager.html +1 -1
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +64 -23
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
- data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
- data/docs/Puppeteer/Mouse.html +1 -1
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +1 -1
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +841 -349
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
- data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
- data/docs/Puppeteer/Page/ScriptTag.html +24 -24
- data/docs/Puppeteer/Page/StyleTag.html +19 -19
- data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
- data/docs/Puppeteer/RemoteObject.html +68 -3
- data/docs/Puppeteer/Target.html +1 -1
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +1 -1
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +1 -1
- data/docs/Puppeteer/WaitTask.html +1 -1
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
- data/docs/Puppeteer/WebSocket.html +1 -1
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocketTransport.html +1 -1
- data/docs/Puppeteer/WebSocktTransportError.html +1 -1
- data/docs/_index.html +19 -5
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +5 -3
- data/docs/index.html +5 -3
- data/docs/method_list.html +644 -508
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer.rb +7 -1
- data/lib/puppeteer/browser_runner.rb +1 -1
- data/lib/puppeteer/dom_world.rb +9 -12
- data/lib/puppeteer/element_handle.rb +82 -61
- data/lib/puppeteer/execution_context.rb +13 -0
- data/lib/puppeteer/file_chooser.rb +29 -0
- data/lib/puppeteer/frame_manager.rb +0 -2
- data/lib/puppeteer/launcher/chrome.rb +48 -2
- data/lib/puppeteer/page.rb +85 -52
- data/lib/puppeteer/remote_object.rb +6 -1
- data/lib/puppeteer/version.rb +1 -1
- metadata +5 -2
data/docs/Puppeteer/Frame.html
CHANGED
|
@@ -3667,7 +3667,7 @@
|
|
|
3667
3667
|
</div>
|
|
3668
3668
|
|
|
3669
3669
|
<div id="footer">
|
|
3670
|
-
Generated on
|
|
3670
|
+
Generated on Thu Jun 4 23:54:41 2020 by
|
|
3671
3671
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
3672
3672
|
0.9.24 (ruby-2.6.3).
|
|
3673
3673
|
</div>
|
|
@@ -2404,7 +2404,7 @@
|
|
|
2404
2404
|
</div>
|
|
2405
2405
|
|
|
2406
2406
|
<div id="footer">
|
|
2407
|
-
Generated on
|
|
2407
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
2408
2408
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2409
2409
|
0.9.24 (ruby-2.6.3).
|
|
2410
2410
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on
|
|
117
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
119
119
|
0.9.24 (ruby-2.6.3).
|
|
120
120
|
</div>
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
</div>
|
|
213
213
|
|
|
214
214
|
<div id="footer">
|
|
215
|
-
Generated on
|
|
215
|
+
Generated on Thu Jun 4 23:54:41 2020 by
|
|
216
216
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
217
217
|
0.9.24 (ruby-2.6.3).
|
|
218
218
|
</div>
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
</div>
|
|
1343
1343
|
|
|
1344
1344
|
<div id="footer">
|
|
1345
|
-
Generated on
|
|
1345
|
+
Generated on Thu Jun 4 23:54:42 2020 by
|
|
1346
1346
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1347
1347
|
0.9.24 (ruby-2.6.3).
|
|
1348
1348
|
</div>
|
|
@@ -1547,7 +1547,7 @@
|
|
|
1547
1547
|
</div>
|
|
1548
1548
|
|
|
1549
1549
|
<div id="footer">
|
|
1550
|
-
Generated on
|
|
1550
|
+
Generated on Thu Jun 4 23:54:42 2020 by
|
|
1551
1551
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1552
1552
|
0.9.24 (ruby-2.6.3).
|
|
1553
1553
|
</div>
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
</div>
|
|
822
822
|
|
|
823
823
|
<div id="footer">
|
|
824
|
-
Generated on
|
|
824
|
+
Generated on Thu Jun 4 23:54:44 2020 by
|
|
825
825
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
826
826
|
0.9.24 (ruby-2.6.3).
|
|
827
827
|
</div>
|
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
</div>
|
|
594
594
|
|
|
595
595
|
<div id="footer">
|
|
596
|
-
Generated on
|
|
596
|
+
Generated on Thu Jun 4 23:54:44 2020 by
|
|
597
597
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
598
598
|
0.9.24 (ruby-2.6.3).
|
|
599
599
|
</div>
|
|
@@ -227,7 +227,7 @@ timeout = 30000
|
|
|
227
227
|
</div>
|
|
228
228
|
|
|
229
229
|
<div id="footer">
|
|
230
|
-
Generated on
|
|
230
|
+
Generated on Thu Jun 4 23:54:41 2020 by
|
|
231
231
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
232
232
|
0.9.24 (ruby-2.6.3).
|
|
233
233
|
</div>
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
</div>
|
|
376
376
|
|
|
377
377
|
<div id="footer">
|
|
378
|
-
Generated on
|
|
378
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
379
379
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
380
380
|
0.9.24 (ruby-2.6.3).
|
|
381
381
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on
|
|
117
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
119
119
|
0.9.24 (ruby-2.6.3).
|
|
120
120
|
</div>
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
</div>
|
|
432
432
|
|
|
433
433
|
<div id="footer">
|
|
434
|
-
Generated on
|
|
434
|
+
Generated on Thu Jun 4 23:54:44 2020 by
|
|
435
435
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
436
436
|
0.9.24 (ruby-2.6.3).
|
|
437
437
|
</div>
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
<li class="public ">
|
|
130
130
|
<span class="summary_signature">
|
|
131
131
|
|
|
132
|
-
<a href="#connect-instance_method" title="#connect (instance method)">#<strong>connect</strong>(options) ⇒ !Promise<!Browser> </a>
|
|
132
|
+
<a href="#connect-instance_method" title="#connect (instance method)">#<strong>connect</strong>(options = {}) ⇒ !Promise<!Browser> </a>
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
<div class="method_details first">
|
|
244
244
|
<h3 class="signature first" id="connect-instance_method">
|
|
245
245
|
|
|
246
|
-
#<strong>connect</strong>(options) ⇒ <tt>!Promise<!<span class='object_link'><a href="../Browser.html" title="Puppeteer::Browser (class)">Browser</a></span>></tt>
|
|
246
|
+
#<strong>connect</strong>(options = {}) ⇒ <tt>!Promise<!<span class='object_link'><a href="../Browser.html" title="Puppeteer::Browser (class)">Browser</a></span>></tt>
|
|
247
247
|
|
|
248
248
|
|
|
249
249
|
|
|
@@ -267,6 +267,8 @@
|
|
|
267
267
|
<span class='type'>(<tt>!(<span class='object_link'><a href="../Launcher.html" title="Puppeteer::Launcher (module)">Launcher</a></span>.<span class='object_link'><a href="BrowserOptions.html" title="Puppeteer::Launcher::BrowserOptions (class)">BrowserOptions</a></span> & {browserWSEndpoint?: string, browserURL?: string, transport?: !<span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.ConnectionTransport})</tt>)</span>
|
|
268
268
|
|
|
269
269
|
|
|
270
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
271
|
+
|
|
270
272
|
|
|
271
273
|
</li>
|
|
272
274
|
|
|
@@ -282,19 +284,6 @@
|
|
|
282
284
|
|
|
283
285
|
|
|
284
286
|
|
|
285
|
-
</li>
|
|
286
|
-
|
|
287
|
-
</ul>
|
|
288
|
-
<p class="tag_title">Raises:</p>
|
|
289
|
-
<ul class="raise">
|
|
290
|
-
|
|
291
|
-
<li>
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
<span class='type'>(<tt>NotImplementedError</tt>)</span>
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
287
|
</li>
|
|
299
288
|
|
|
300
289
|
</ul>
|
|
@@ -307,13 +296,65 @@
|
|
|
307
296
|
|
|
308
297
|
152
|
|
309
298
|
153
|
|
310
|
-
154
|
|
299
|
+
154
|
|
300
|
+
155
|
|
301
|
+
156
|
|
302
|
+
157
|
|
303
|
+
158
|
|
304
|
+
159
|
|
305
|
+
160
|
|
306
|
+
161
|
|
307
|
+
162
|
|
308
|
+
163
|
|
309
|
+
164
|
|
310
|
+
165
|
|
311
|
+
166
|
|
312
|
+
167
|
|
313
|
+
168
|
|
314
|
+
169
|
|
315
|
+
170
|
|
316
|
+
171
|
|
317
|
+
172
|
|
318
|
+
173
|
|
319
|
+
174
|
|
320
|
+
175
|
|
321
|
+
176
|
|
322
|
+
177
|
|
323
|
+
178
|
|
324
|
+
179
|
|
325
|
+
180</pre>
|
|
311
326
|
</td>
|
|
312
327
|
<td>
|
|
313
328
|
<pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome.rb', line 152</span>
|
|
314
329
|
|
|
315
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_connect'>connect</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
|
316
|
-
<span class='
|
|
330
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_connect'>connect</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
331
|
+
<span class='ivar'>@browser_options</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="BrowserOptions.html" title="Puppeteer::Launcher::BrowserOptions (class)">BrowserOptions</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="BrowserOptions.html#initialize-instance_method" title="Puppeteer::Launcher::BrowserOptions#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
|
332
|
+
<span class='id identifier rubyid_browser_ws_endpoint'>browser_ws_endpoint</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:browser_ws_endpoint</span><span class='rbracket'>]</span>
|
|
333
|
+
<span class='id identifier rubyid_browser_url'>browser_url</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:browser_url</span><span class='rbracket'>]</span>
|
|
334
|
+
<span class='id identifier rubyid_transport'>transport</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:transport</span><span class='rbracket'>]</span>
|
|
335
|
+
|
|
336
|
+
<span class='id identifier rubyid_connection'>connection</span> <span class='op'>=</span>
|
|
337
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_browser_ws_endpoint'>browser_ws_endpoint</span> <span class='op'>&&</span> <span class='id identifier rubyid_browser_url'>browser_url</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&&</span> <span class='id identifier rubyid_transport'>transport</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
338
|
+
<span class='id identifier rubyid_connect_with_browser_ws_endpoint'>connect_with_browser_ws_endpoint</span><span class='lparen'>(</span><span class='id identifier rubyid_browser_ws_endpoint'>browser_ws_endpoint</span><span class='rparen'>)</span>
|
|
339
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_browser_ws_endpoint'>browser_ws_endpoint</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&&</span> <span class='id identifier rubyid_browser_url'>browser_url</span> <span class='op'>&&</span> <span class='id identifier rubyid_transport'>transport</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
340
|
+
<span class='id identifier rubyid_connect_with_browser_url'>connect_with_browser_url</span><span class='lparen'>(</span><span class='id identifier rubyid_browser_url'>browser_url</span><span class='rparen'>)</span>
|
|
341
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_browser_ws_endpoint'>browser_ws_endpoint</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&&</span> <span class='id identifier rubyid_browser_url'>browser_url</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&&</span> <span class='id identifier rubyid_transport'>transport</span>
|
|
342
|
+
<span class='id identifier rubyid_connect_with_transport'>connect_with_transport</span><span class='lparen'>(</span><span class='id identifier rubyid_transport'>transport</span><span class='rparen'>)</span>
|
|
343
|
+
<span class='kw'>else</span>
|
|
344
|
+
<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'>"</span><span class='tstring_content'>Exactly one of browserWSEndpoint, browserURL or transport must be passed to puppeteer.connect</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
345
|
+
<span class='kw'>end</span>
|
|
346
|
+
|
|
347
|
+
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_connection'>connection</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Target.getBrowserContexts</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
348
|
+
<span class='id identifier rubyid_browser_context_ids'>browser_context_ids</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>browserContextIds</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
349
|
+
|
|
350
|
+
<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="../Browser.html" title="Puppeteer::Browser (class)">Browser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create'><span class='object_link'><a href="../Browser.html#create-class_method" title="Puppeteer::Browser.create (method)">create</a></span></span><span class='lparen'>(</span>
|
|
351
|
+
<span class='label'>connection:</span> <span class='id identifier rubyid_connection'>connection</span><span class='comma'>,</span>
|
|
352
|
+
<span class='label'>context_ids:</span> <span class='id identifier rubyid_browser_context_ids'>browser_context_ids</span><span class='comma'>,</span>
|
|
353
|
+
<span class='label'>ignore_https_errors:</span> <span class='ivar'>@browser_options</span><span class='period'>.</span><span class='id identifier rubyid_ignore_https_errors?'>ignore_https_errors?</span><span class='comma'>,</span>
|
|
354
|
+
<span class='label'>default_viewport:</span> <span class='ivar'>@browser_options</span><span class='period'>.</span><span class='id identifier rubyid_default_viewport'>default_viewport</span><span class='comma'>,</span>
|
|
355
|
+
<span class='label'>process:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
|
356
|
+
<span class='label'>close_callback:</span> <span class='tlambda'>-></span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_connection'>connection</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Browser.close</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
|
357
|
+
<span class='rparen'>)</span>
|
|
317
358
|
<span class='kw'>end</span></pre>
|
|
318
359
|
</td>
|
|
319
360
|
</tr>
|
|
@@ -395,12 +436,12 @@
|
|
|
395
436
|
<pre class="lines">
|
|
396
437
|
|
|
397
438
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
439
|
+
203
|
|
440
|
+
204
|
|
441
|
+
205</pre>
|
|
401
442
|
</td>
|
|
402
443
|
<td>
|
|
403
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome.rb', line
|
|
444
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome.rb', line 203</span>
|
|
404
445
|
|
|
405
446
|
<span class='kw'>def</span> <span class='id identifier rubyid_executable_path'>executable_path</span>
|
|
406
447
|
<span class='id identifier rubyid_resolve_executable_path'>resolve_executable_path</span>
|
|
@@ -618,7 +659,7 @@
|
|
|
618
659
|
</div>
|
|
619
660
|
|
|
620
661
|
<div id="footer">
|
|
621
|
-
Generated on
|
|
662
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
622
663
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
623
664
|
0.9.24 (ruby-2.6.3).
|
|
624
665
|
</div>
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
</div>
|
|
373
373
|
|
|
374
374
|
<div id="footer">
|
|
375
|
-
Generated on
|
|
375
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
376
376
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
377
377
|
0.9.24 (ruby-2.6.3).
|
|
378
378
|
</div>
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
</div>
|
|
522
522
|
|
|
523
523
|
<div id="footer">
|
|
524
|
-
Generated on
|
|
524
|
+
Generated on Thu Jun 4 23:54:44 2020 by
|
|
525
525
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
526
526
|
0.9.24 (ruby-2.6.3).
|
|
527
527
|
</div>
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
</div>
|
|
884
884
|
|
|
885
885
|
<div id="footer">
|
|
886
|
-
Generated on
|
|
886
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
887
887
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
888
888
|
0.9.24 (ruby-2.6.3).
|
|
889
889
|
</div>
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
</div>
|
|
825
825
|
|
|
826
826
|
<div id="footer">
|
|
827
|
-
Generated on
|
|
827
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
828
828
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
829
829
|
0.9.24 (ruby-2.6.3).
|
|
830
830
|
</div>
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
</div>
|
|
354
354
|
|
|
355
355
|
<div id="footer">
|
|
356
|
-
Generated on
|
|
356
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
357
357
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
358
358
|
0.9.24 (ruby-2.6.3).
|
|
359
359
|
</div>
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
</div>
|
|
197
197
|
|
|
198
198
|
<div id="footer">
|
|
199
|
-
Generated on
|
|
199
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
200
200
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
201
201
|
0.9.24 (ruby-2.6.3).
|
|
202
202
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on
|
|
117
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
119
119
|
0.9.24 (ruby-2.6.3).
|
|
120
120
|
</div>
|
data/docs/Puppeteer/Mouse.html
CHANGED
|
@@ -1095,7 +1095,7 @@
|
|
|
1095
1095
|
</div>
|
|
1096
1096
|
|
|
1097
1097
|
<div id="footer">
|
|
1098
|
-
Generated on
|
|
1098
|
+
Generated on Thu Jun 4 23:54:41 2020 by
|
|
1099
1099
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1100
1100
|
0.9.24 (ruby-2.6.3).
|
|
1101
1101
|
</div>
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
128
|
<div id="footer">
|
|
129
|
-
Generated on
|
|
129
|
+
Generated on Thu Jun 4 23:54:40 2020 by
|
|
130
130
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
131
131
|
0.9.24 (ruby-2.6.3).
|
|
132
132
|
</div>
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
</div>
|
|
892
892
|
|
|
893
893
|
<div id="footer">
|
|
894
|
-
Generated on
|
|
894
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
895
895
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
896
896
|
0.9.24 (ruby-2.6.3).
|
|
897
897
|
</div>
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
</div>
|
|
376
376
|
|
|
377
377
|
<div id="footer">
|
|
378
|
-
Generated on
|
|
378
|
+
Generated on Thu Jun 4 23:54:43 2020 by
|
|
379
379
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
380
380
|
0.9.24 (ruby-2.6.3).
|
|
381
381
|
</div>
|
data/docs/Puppeteer/Page.html
CHANGED
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span>, <span class='object_link'><a href="Page/ScriptTag.html" title="Puppeteer::Page::ScriptTag (class)">ScriptTag</a></span>, <span class='object_link'><a href="Page/StyleTag.html" title="Puppeteer::Page::StyleTag (class)">StyleTag</a></span>, <span class='object_link'><a href="Page/TargetCrashedError.html" title="Puppeteer::Page::TargetCrashedError (class)">TargetCrashedError</a></span>
|
|
115
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Page/FileChooserTimeoutError.html" title="Puppeteer::Page::FileChooserTimeoutError (class)">FileChooserTimeoutError</a></span>, <span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span>, <span class='object_link'><a href="Page/ScriptTag.html" title="Puppeteer::Page::ScriptTag (class)">ScriptTag</a></span>, <span class='object_link'><a href="Page/StyleTag.html" title="Puppeteer::Page::StyleTag (class)">StyleTag</a></span>, <span class='object_link'><a href="Page/TargetCrashedError.html" title="Puppeteer::Page::TargetCrashedError (class)">TargetCrashedError</a></span>
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
</p>
|
|
@@ -456,6 +456,76 @@
|
|
|
456
456
|
|
|
457
457
|
|
|
458
458
|
|
|
459
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
460
|
+
|
|
461
|
+
</li>
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
<li class="public ">
|
|
465
|
+
<span class="summary_signature">
|
|
466
|
+
|
|
467
|
+
<a href="#async_Seval-instance_method" title="#async_Seval (instance method)">#<strong>async_Seval</strong> ⇒ Future </a>
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
</span>
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
<span class="summary_desc"><div class='inline'>
|
|
482
|
+
<p>`$eval()` in JavaScript.</p>
|
|
483
|
+
</div></span>
|
|
484
|
+
|
|
485
|
+
</li>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
<li class="public ">
|
|
489
|
+
<span class="summary_signature">
|
|
490
|
+
|
|
491
|
+
<a href="#async_SSeval-instance_method" title="#async_SSeval (instance method)">#<strong>async_SSeval</strong> ⇒ Future </a>
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
</span>
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
<span class="summary_desc"><div class='inline'>
|
|
506
|
+
<p>`$$eval()` in JavaScript.</p>
|
|
507
|
+
</div></span>
|
|
508
|
+
|
|
509
|
+
</li>
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
<li class="public ">
|
|
513
|
+
<span class="summary_signature">
|
|
514
|
+
|
|
515
|
+
<a href="#async_wait_for_file_chooser-instance_method" title="#async_wait_for_file_chooser (instance method)">#<strong>async_wait_for_file_chooser</strong> ⇒ Future<Puppeteer::FileChooser> </a>
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
</span>
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
459
529
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
460
530
|
|
|
461
531
|
</li>
|
|
@@ -940,6 +1010,28 @@
|
|
|
940
1010
|
|
|
941
1011
|
|
|
942
1012
|
|
|
1013
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
1014
|
+
|
|
1015
|
+
</li>
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
<li class="public ">
|
|
1019
|
+
<span class="summary_signature">
|
|
1020
|
+
|
|
1021
|
+
<a href="#handle_file_chooser-instance_method" title="#handle_file_chooser (instance method)">#<strong>handle_file_chooser</strong>(event) ⇒ Object </a>
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
</span>
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
943
1035
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
944
1036
|
|
|
945
1037
|
</li>
|
|
@@ -1084,7 +1176,7 @@
|
|
|
1084
1176
|
<li class="public ">
|
|
1085
1177
|
<span class="summary_signature">
|
|
1086
1178
|
|
|
1087
|
-
<a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒
|
|
1179
|
+
<a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒ Puppeteer::Response </a>
|
|
1088
1180
|
|
|
1089
1181
|
|
|
1090
1182
|
|
|
@@ -1220,7 +1312,7 @@
|
|
|
1220
1312
|
<li class="public ">
|
|
1221
1313
|
<span class="summary_signature">
|
|
1222
1314
|
|
|
1223
|
-
<a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) ⇒
|
|
1315
|
+
<a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) ⇒ Object </a>
|
|
1224
1316
|
|
|
1225
1317
|
|
|
1226
1318
|
|
|
@@ -1268,7 +1360,7 @@
|
|
|
1268
1360
|
<li class="public ">
|
|
1269
1361
|
<span class="summary_signature">
|
|
1270
1362
|
|
|
1271
|
-
<a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) ⇒
|
|
1363
|
+
<a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) ⇒ Object </a>
|
|
1272
1364
|
|
|
1273
1365
|
|
|
1274
1366
|
|
|
@@ -1418,6 +1510,28 @@
|
|
|
1418
1510
|
|
|
1419
1511
|
|
|
1420
1512
|
|
|
1513
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
1514
|
+
|
|
1515
|
+
</li>
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
<li class="public ">
|
|
1519
|
+
<span class="summary_signature">
|
|
1520
|
+
|
|
1521
|
+
<a href="#wait_for_file_chooser-instance_method" title="#wait_for_file_chooser (instance method)">#<strong>wait_for_file_chooser</strong>(timeout: nil) ⇒ Puppeteer::FileChooser </a>
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
</span>
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
|
|
1421
1535
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
1422
1536
|
|
|
1423
1537
|
</li>
|
|
@@ -1698,7 +1812,9 @@
|
|
|
1698
1812
|
111
|
|
1699
1813
|
112
|
|
1700
1814
|
113
|
|
1701
|
-
114
|
|
1815
|
+
114
|
|
1816
|
+
115
|
|
1817
|
+
116</pre>
|
|
1702
1818
|
</td>
|
|
1703
1819
|
<td>
|
|
1704
1820
|
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 29</span>
|
|
@@ -1765,9 +1881,9 @@
|
|
|
1765
1881
|
<span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.NetworkManager.RequestFinished</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
|
1766
1882
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.RequestFinished</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_event'>event</span>
|
|
1767
1883
|
<span class='kw'>end</span>
|
|
1768
|
-
<span class='
|
|
1769
|
-
</span>
|
|
1770
|
-
|
|
1884
|
+
<span class='ivar'>@file_chooser_interception_is_disabled</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
1885
|
+
<span class='ivar'>@file_chooser_interceptors</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
1886
|
+
|
|
1771
1887
|
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.domContentEventFired</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
|
1772
1888
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.DOMContentLoaded</span><span class='tstring_end'>'</span></span>
|
|
1773
1889
|
<span class='kw'>end</span>
|
|
@@ -1783,8 +1899,10 @@
|
|
|
1783
1899
|
</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Log.entryAdded</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
|
1784
1900
|
<span class='id identifier rubyid_handle_log_entry_added'>handle_log_entry_added</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
|
1785
1901
|
<span class='kw'>end</span>
|
|
1786
|
-
<span class='
|
|
1787
|
-
|
|
1902
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.fileChooserOpened</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
|
1903
|
+
<span class='id identifier rubyid_handle_file_chooser'>handle_file_chooser</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
|
1904
|
+
<span class='kw'>end</span>
|
|
1905
|
+
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_on_close'>on_close</span> <span class='kw'>do</span>
|
|
1788
1906
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.Close</span><span class='tstring_end'>'</span></span>
|
|
1789
1907
|
<span class='ivar'>@closed</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
1790
1908
|
<span class='kw'>end</span>
|
|
@@ -1827,12 +1945,12 @@
|
|
|
1827
1945
|
<pre class="lines">
|
|
1828
1946
|
|
|
1829
1947
|
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1948
|
+
233
|
|
1949
|
+
234
|
|
1950
|
+
235</pre>
|
|
1833
1951
|
</td>
|
|
1834
1952
|
<td>
|
|
1835
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
1953
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
|
1836
1954
|
|
|
1837
1955
|
<span class='kw'>def</span> <span class='id identifier rubyid_accessibility'>accessibility</span>
|
|
1838
1956
|
<span class='ivar'>@accessibility</span>
|
|
@@ -1870,12 +1988,12 @@
|
|
|
1870
1988
|
<pre class="lines">
|
|
1871
1989
|
|
|
1872
1990
|
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1991
|
+
233
|
|
1992
|
+
234
|
|
1993
|
+
235</pre>
|
|
1876
1994
|
</td>
|
|
1877
1995
|
<td>
|
|
1878
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
1996
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
|
1879
1997
|
|
|
1880
1998
|
<span class='kw'>def</span> <span class='id identifier rubyid_coverage'>coverage</span>
|
|
1881
1999
|
<span class='ivar'>@coverage</span>
|
|
@@ -1930,12 +2048,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
1930
2048
|
<pre class="lines">
|
|
1931
2049
|
|
|
1932
2050
|
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
2051
|
+
190
|
|
2052
|
+
191
|
|
2053
|
+
192</pre>
|
|
1936
2054
|
</td>
|
|
1937
2055
|
<td>
|
|
1938
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2056
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 190</span>
|
|
1939
2057
|
|
|
1940
2058
|
<span class='kw'>def</span> <span class='id identifier rubyid_javascript_enabled'>javascript_enabled</span>
|
|
1941
2059
|
<span class='ivar'>@javascript_enabled</span>
|
|
@@ -1973,12 +2091,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
1973
2091
|
<pre class="lines">
|
|
1974
2092
|
|
|
1975
2093
|
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
2094
|
+
233
|
|
2095
|
+
234
|
|
2096
|
+
235</pre>
|
|
1979
2097
|
</td>
|
|
1980
2098
|
<td>
|
|
1981
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2099
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
|
1982
2100
|
|
|
1983
2101
|
<span class='kw'>def</span> <span class='id identifier rubyid_keyboard'>keyboard</span>
|
|
1984
2102
|
<span class='ivar'>@keyboard</span>
|
|
@@ -2016,12 +2134,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2016
2134
|
<pre class="lines">
|
|
2017
2135
|
|
|
2018
2136
|
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2137
|
+
963
|
|
2138
|
+
964
|
|
2139
|
+
965</pre>
|
|
2022
2140
|
</td>
|
|
2023
2141
|
<td>
|
|
2024
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2142
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 963</span>
|
|
2025
2143
|
|
|
2026
2144
|
<span class='kw'>def</span> <span class='id identifier rubyid_mouse'>mouse</span>
|
|
2027
2145
|
<span class='ivar'>@mouse</span>
|
|
@@ -2076,12 +2194,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2076
2194
|
<pre class="lines">
|
|
2077
2195
|
|
|
2078
2196
|
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2197
|
+
190
|
|
2198
|
+
191
|
|
2199
|
+
192</pre>
|
|
2082
2200
|
</td>
|
|
2083
2201
|
<td>
|
|
2084
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2202
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 190</span>
|
|
2085
2203
|
|
|
2086
2204
|
<span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
|
|
2087
2205
|
<span class='ivar'>@target</span>
|
|
@@ -2119,12 +2237,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2119
2237
|
<pre class="lines">
|
|
2120
2238
|
|
|
2121
2239
|
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2240
|
+
233
|
|
2241
|
+
234
|
|
2242
|
+
235</pre>
|
|
2125
2243
|
</td>
|
|
2126
2244
|
<td>
|
|
2127
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2245
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
|
2128
2246
|
|
|
2129
2247
|
<span class='kw'>def</span> <span class='id identifier rubyid_touch_screen'>touch_screen</span>
|
|
2130
2248
|
<span class='ivar'>@touch_screen</span>
|
|
@@ -2162,12 +2280,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2162
2280
|
<pre class="lines">
|
|
2163
2281
|
|
|
2164
2282
|
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2283
|
+
786
|
|
2284
|
+
787
|
|
2285
|
+
788</pre>
|
|
2168
2286
|
</td>
|
|
2169
2287
|
<td>
|
|
2170
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2288
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 786</span>
|
|
2171
2289
|
|
|
2172
2290
|
<span class='kw'>def</span> <span class='id identifier rubyid_viewport'>viewport</span>
|
|
2173
2291
|
<span class='ivar'>@viewport</span>
|
|
@@ -2363,12 +2481,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2363
2481
|
<pre class="lines">
|
|
2364
2482
|
|
|
2365
2483
|
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2484
|
+
385
|
|
2485
|
+
386
|
|
2486
|
+
387</pre>
|
|
2369
2487
|
</td>
|
|
2370
2488
|
<td>
|
|
2371
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2489
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 385</span>
|
|
2372
2490
|
|
|
2373
2491
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
|
|
2374
2492
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
|
|
@@ -2430,12 +2548,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2430
2548
|
<pre class="lines">
|
|
2431
2549
|
|
|
2432
2550
|
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2551
|
+
401
|
|
2552
|
+
402
|
|
2553
|
+
403</pre>
|
|
2436
2554
|
</td>
|
|
2437
2555
|
<td>
|
|
2438
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2556
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 401</span>
|
|
2439
2557
|
|
|
2440
2558
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
|
|
2441
2559
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
|
|
@@ -2448,7 +2566,272 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2448
2566
|
<div class="method_details ">
|
|
2449
2567
|
<h3 class="signature " id="async_click-instance_method">
|
|
2450
2568
|
|
|
2451
|
-
#<strong>async_click</strong> ⇒ <tt>Future</tt>
|
|
2569
|
+
#<strong>async_click</strong> ⇒ <tt>Future</tt>
|
|
2570
|
+
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
</h3><div class="docstring">
|
|
2576
|
+
<div class="discussion">
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
</div>
|
|
2580
|
+
</div>
|
|
2581
|
+
<div class="tags">
|
|
2582
|
+
<p class="tag_title">Parameters:</p>
|
|
2583
|
+
<ul class="param">
|
|
2584
|
+
|
|
2585
|
+
<li>
|
|
2586
|
+
|
|
2587
|
+
<span class='name'>selector</span>
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
2591
|
+
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
</li>
|
|
2595
|
+
|
|
2596
|
+
<li>
|
|
2597
|
+
|
|
2598
|
+
<span class='name'>delay</span>
|
|
2599
|
+
|
|
2600
|
+
|
|
2601
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
|
|
2605
|
+
</li>
|
|
2606
|
+
|
|
2607
|
+
<li>
|
|
2608
|
+
|
|
2609
|
+
<span class='name'>button</span>
|
|
2610
|
+
|
|
2611
|
+
|
|
2612
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
2613
|
+
|
|
2614
|
+
|
|
2615
|
+
|
|
2616
|
+
—
|
|
2617
|
+
<div class='inline'>
|
|
2618
|
+
<p>“left”|“right”|“middle”</p>
|
|
2619
|
+
</div>
|
|
2620
|
+
|
|
2621
|
+
</li>
|
|
2622
|
+
|
|
2623
|
+
<li>
|
|
2624
|
+
|
|
2625
|
+
<span class='name'>click_count</span>
|
|
2626
|
+
|
|
2627
|
+
|
|
2628
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
|
|
2632
|
+
</li>
|
|
2633
|
+
|
|
2634
|
+
</ul>
|
|
2635
|
+
|
|
2636
|
+
<p class="tag_title">Returns:</p>
|
|
2637
|
+
<ul class="return">
|
|
2638
|
+
|
|
2639
|
+
<li>
|
|
2640
|
+
|
|
2641
|
+
|
|
2642
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
|
|
2646
|
+
</li>
|
|
2647
|
+
|
|
2648
|
+
</ul>
|
|
2649
|
+
|
|
2650
|
+
</div><table class="source_code">
|
|
2651
|
+
<tr>
|
|
2652
|
+
<td>
|
|
2653
|
+
<pre class="lines">
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
978
|
|
2657
|
+
979
|
|
2658
|
+
980</pre>
|
|
2659
|
+
</td>
|
|
2660
|
+
<td>
|
|
2661
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 978</span>
|
|
2662
|
+
|
|
2663
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_click'>async_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>
|
|
2664
|
+
<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='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>
|
|
2665
|
+
<span class='kw'>end</span></pre>
|
|
2666
|
+
</td>
|
|
2667
|
+
</tr>
|
|
2668
|
+
</table>
|
|
2669
|
+
</div>
|
|
2670
|
+
|
|
2671
|
+
<div class="method_details ">
|
|
2672
|
+
<h3 class="signature " id="async_Seval-instance_method">
|
|
2673
|
+
|
|
2674
|
+
#<strong>async_Seval</strong> ⇒ <tt>Future</tt>
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
</h3><div class="docstring">
|
|
2681
|
+
<div class="discussion">
|
|
2682
|
+
|
|
2683
|
+
<p>`$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
|
|
2684
|
+
|
|
2685
|
+
|
|
2686
|
+
</div>
|
|
2687
|
+
</div>
|
|
2688
|
+
<div class="tags">
|
|
2689
|
+
<p class="tag_title">Parameters:</p>
|
|
2690
|
+
<ul class="param">
|
|
2691
|
+
|
|
2692
|
+
<li>
|
|
2693
|
+
|
|
2694
|
+
<span class='name'>selector</span>
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
|
|
2701
|
+
</li>
|
|
2702
|
+
|
|
2703
|
+
<li>
|
|
2704
|
+
|
|
2705
|
+
<span class='name'>page_function</span>
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
</li>
|
|
2713
|
+
|
|
2714
|
+
</ul>
|
|
2715
|
+
|
|
2716
|
+
<p class="tag_title">Returns:</p>
|
|
2717
|
+
<ul class="return">
|
|
2718
|
+
|
|
2719
|
+
<li>
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
</li>
|
|
2727
|
+
|
|
2728
|
+
</ul>
|
|
2729
|
+
|
|
2730
|
+
</div><table class="source_code">
|
|
2731
|
+
<tr>
|
|
2732
|
+
<td>
|
|
2733
|
+
<pre class="lines">
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
303
|
|
2737
|
+
304
|
|
2738
|
+
305</pre>
|
|
2739
|
+
</td>
|
|
2740
|
+
<td>
|
|
2741
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 303</span>
|
|
2742
|
+
|
|
2743
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_Seval'>async_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>
|
|
2744
|
+
<span class='const'><span class='object_link'><a href="#Seval-instance_method" title="Puppeteer::Page#Seval (method)">Seval</a></span></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>
|
|
2745
|
+
<span class='kw'>end</span></pre>
|
|
2746
|
+
</td>
|
|
2747
|
+
</tr>
|
|
2748
|
+
</table>
|
|
2749
|
+
</div>
|
|
2750
|
+
|
|
2751
|
+
<div class="method_details ">
|
|
2752
|
+
<h3 class="signature " id="async_SSeval-instance_method">
|
|
2753
|
+
|
|
2754
|
+
#<strong>async_SSeval</strong> ⇒ <tt>Future</tt>
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
</h3><div class="docstring">
|
|
2761
|
+
<div class="discussion">
|
|
2762
|
+
|
|
2763
|
+
<p>`$$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
</div>
|
|
2767
|
+
</div>
|
|
2768
|
+
<div class="tags">
|
|
2769
|
+
<p class="tag_title">Parameters:</p>
|
|
2770
|
+
<ul class="param">
|
|
2771
|
+
|
|
2772
|
+
<li>
|
|
2773
|
+
|
|
2774
|
+
<span class='name'>selector</span>
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
</li>
|
|
2782
|
+
|
|
2783
|
+
<li>
|
|
2784
|
+
|
|
2785
|
+
<span class='name'>page_function</span>
|
|
2786
|
+
|
|
2787
|
+
|
|
2788
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
</li>
|
|
2793
|
+
|
|
2794
|
+
</ul>
|
|
2795
|
+
|
|
2796
|
+
<p class="tag_title">Returns:</p>
|
|
2797
|
+
<ul class="return">
|
|
2798
|
+
|
|
2799
|
+
<li>
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
</li>
|
|
2807
|
+
|
|
2808
|
+
</ul>
|
|
2809
|
+
|
|
2810
|
+
</div><table class="source_code">
|
|
2811
|
+
<tr>
|
|
2812
|
+
<td>
|
|
2813
|
+
<pre class="lines">
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
319
|
|
2817
|
+
320
|
|
2818
|
+
321</pre>
|
|
2819
|
+
</td>
|
|
2820
|
+
<td>
|
|
2821
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 319</span>
|
|
2822
|
+
|
|
2823
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_SSeval'>async_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>
|
|
2824
|
+
<span class='const'><span class='object_link'><a href="#SSeval-instance_method" title="Puppeteer::Page#SSeval (method)">SSeval</a></span></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>
|
|
2825
|
+
<span class='kw'>end</span></pre>
|
|
2826
|
+
</td>
|
|
2827
|
+
</tr>
|
|
2828
|
+
</table>
|
|
2829
|
+
</div>
|
|
2830
|
+
|
|
2831
|
+
<div class="method_details ">
|
|
2832
|
+
<h3 class="signature " id="async_wait_for_file_chooser-instance_method">
|
|
2833
|
+
|
|
2834
|
+
#<strong>async_wait_for_file_chooser</strong> ⇒ <tt>Future<<span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span>></tt>
|
|
2452
2835
|
|
|
2453
2836
|
|
|
2454
2837
|
|
|
@@ -2466,48 +2849,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2466
2849
|
|
|
2467
2850
|
<li>
|
|
2468
2851
|
|
|
2469
|
-
<span class='name'>
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
</li>
|
|
2477
|
-
|
|
2478
|
-
<li>
|
|
2479
|
-
|
|
2480
|
-
<span class='name'>delay</span>
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
<span class='type'>(<tt>Number</tt>)</span>
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
</li>
|
|
2488
|
-
|
|
2489
|
-
<li>
|
|
2490
|
-
|
|
2491
|
-
<span class='name'>button</span>
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
—
|
|
2499
|
-
<div class='inline'>
|
|
2500
|
-
<p>“left”|“right”|“middle”</p>
|
|
2501
|
-
</div>
|
|
2502
|
-
|
|
2503
|
-
</li>
|
|
2504
|
-
|
|
2505
|
-
<li>
|
|
2506
|
-
|
|
2507
|
-
<span class='name'>click_count</span>
|
|
2852
|
+
<span class='name'>timeout</span>
|
|
2508
2853
|
|
|
2509
2854
|
|
|
2510
|
-
<span class='type'>(<tt>
|
|
2855
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
2511
2856
|
|
|
2512
2857
|
|
|
2513
2858
|
|
|
@@ -2521,7 +2866,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2521
2866
|
<li>
|
|
2522
2867
|
|
|
2523
2868
|
|
|
2524
|
-
<span class='type'>(<tt>Future</tt>)</span>
|
|
2869
|
+
<span class='type'>(<tt>Future<<span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span>></tt>)</span>
|
|
2525
2870
|
|
|
2526
2871
|
|
|
2527
2872
|
|
|
@@ -2535,15 +2880,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2535
2880
|
<pre class="lines">
|
|
2536
2881
|
|
|
2537
2882
|
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2883
|
+
171
|
|
2884
|
+
172
|
|
2885
|
+
173</pre>
|
|
2541
2886
|
</td>
|
|
2542
2887
|
<td>
|
|
2543
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2888
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 171</span>
|
|
2544
2889
|
|
|
2545
|
-
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier
|
|
2546
|
-
<span class='id identifier
|
|
2890
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_wait_for_file_chooser'>async_wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2891
|
+
<span class='id identifier rubyid_wait_for_file_chooser'>wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
|
2547
2892
|
<span class='kw'>end</span></pre>
|
|
2548
2893
|
</td>
|
|
2549
2894
|
</tr>
|
|
@@ -2618,12 +2963,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2618
2963
|
<pre class="lines">
|
|
2619
2964
|
|
|
2620
2965
|
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2966
|
+
660
|
|
2967
|
+
661
|
|
2968
|
+
662</pre>
|
|
2624
2969
|
</td>
|
|
2625
2970
|
<td>
|
|
2626
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2971
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 660</span>
|
|
2627
2972
|
|
|
2628
2973
|
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_wait_for_navigation'>async_wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2629
2974
|
<span class='id identifier rubyid_wait_for_navigation'>wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
|
@@ -2687,12 +3032,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2687
3032
|
<pre class="lines">
|
|
2688
3033
|
|
|
2689
3034
|
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
3035
|
+
439
|
|
3036
|
+
440
|
|
3037
|
+
441</pre>
|
|
2693
3038
|
</td>
|
|
2694
3039
|
<td>
|
|
2695
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3040
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 439</span>
|
|
2696
3041
|
|
|
2697
3042
|
<span class='kw'>def</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2698
3043
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
|
|
@@ -2717,12 +3062,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2717
3062
|
<pre class="lines">
|
|
2718
3063
|
|
|
2719
3064
|
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
3065
|
+
192
|
|
3066
|
+
193
|
|
3067
|
+
194</pre>
|
|
2723
3068
|
</td>
|
|
2724
3069
|
<td>
|
|
2725
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3070
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 192</span>
|
|
2726
3071
|
|
|
2727
3072
|
<span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
|
|
2728
3073
|
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
|
|
@@ -2747,12 +3092,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2747
3092
|
<pre class="lines">
|
|
2748
3093
|
|
|
2749
3094
|
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
3095
|
+
196
|
|
3096
|
+
197
|
|
3097
|
+
198</pre>
|
|
2753
3098
|
</td>
|
|
2754
3099
|
<td>
|
|
2755
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3100
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 196</span>
|
|
2756
3101
|
|
|
2757
3102
|
<span class='kw'>def</span> <span class='id identifier rubyid_browser_context'>browser_context</span>
|
|
2758
3103
|
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser_context'>browser_context</span>
|
|
@@ -2801,12 +3146,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2801
3146
|
<pre class="lines">
|
|
2802
3147
|
|
|
2803
3148
|
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
3149
|
+
805
|
|
3150
|
+
806
|
|
3151
|
+
807</pre>
|
|
2807
3152
|
</td>
|
|
2808
3153
|
<td>
|
|
2809
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3154
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 805</span>
|
|
2810
3155
|
|
|
2811
3156
|
<span class='kw'>def</span> <span class='id identifier rubyid_cache_enabled='>cache_enabled=</span><span class='lparen'>(</span><span class='id identifier rubyid_enabled'>enabled</span><span class='rparen'>)</span>
|
|
2812
3157
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_cache_enabled'>cache_enabled</span> <span class='op'>=</span> <span class='id identifier rubyid_enabled'>enabled</span>
|
|
@@ -2899,12 +3244,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2899
3244
|
<pre class="lines">
|
|
2900
3245
|
|
|
2901
3246
|
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
3247
|
+
969
|
|
3248
|
+
970
|
|
3249
|
+
971</pre>
|
|
2905
3250
|
</td>
|
|
2906
3251
|
<td>
|
|
2907
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3252
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 969</span>
|
|
2908
3253
|
|
|
2909
3254
|
<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>
|
|
2910
3255
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</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='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>
|
|
@@ -2953,19 +3298,19 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2953
3298
|
<pre class="lines">
|
|
2954
3299
|
|
|
2955
3300
|
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3301
|
+
947
|
|
3302
|
+
948
|
|
3303
|
+
949
|
|
3304
|
+
950
|
|
3305
|
+
951
|
|
3306
|
+
952
|
|
3307
|
+
953
|
|
3308
|
+
954
|
|
3309
|
+
955
|
|
3310
|
+
956</pre>
|
|
2966
3311
|
</td>
|
|
2967
3312
|
<td>
|
|
2968
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3313
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 947</span>
|
|
2969
3314
|
|
|
2970
3315
|
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
|
|
2971
3316
|
<span class='comment'># assert(!!this._client._connection, 'Protocol error: Connection closed. Most likely the page has been closed.');
|
|
@@ -3019,12 +3364,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3019
3364
|
<pre class="lines">
|
|
3020
3365
|
|
|
3021
3366
|
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3367
|
+
959
|
|
3368
|
+
960
|
|
3369
|
+
961</pre>
|
|
3025
3370
|
</td>
|
|
3026
3371
|
<td>
|
|
3027
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3372
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 959</span>
|
|
3028
3373
|
|
|
3029
3374
|
<span class='kw'>def</span> <span class='id identifier rubyid_closed?'>closed?</span>
|
|
3030
3375
|
<span class='ivar'>@closed</span>
|
|
@@ -3071,12 +3416,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3071
3416
|
<pre class="lines">
|
|
3072
3417
|
|
|
3073
3418
|
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3419
|
+
618
|
|
3420
|
+
619
|
|
3421
|
+
620</pre>
|
|
3077
3422
|
</td>
|
|
3078
3423
|
<td>
|
|
3079
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3424
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 618</span>
|
|
3080
3425
|
|
|
3081
3426
|
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
|
3082
3427
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
|
@@ -3125,12 +3470,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3125
3470
|
<pre class="lines">
|
|
3126
3471
|
|
|
3127
3472
|
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3473
|
+
629
|
|
3474
|
+
630
|
|
3475
|
+
631</pre>
|
|
3131
3476
|
</td>
|
|
3132
3477
|
<td>
|
|
3133
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3478
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 629</span>
|
|
3134
3479
|
|
|
3135
3480
|
<span class='kw'>def</span> <span class='id identifier rubyid_content='>content=</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='rparen'>)</span>
|
|
3136
3481
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='rparen'>)</span>
|
|
@@ -3179,12 +3524,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3179
3524
|
<pre class="lines">
|
|
3180
3525
|
|
|
3181
3526
|
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3527
|
+
253
|
|
3528
|
+
254
|
|
3529
|
+
255</pre>
|
|
3185
3530
|
</td>
|
|
3186
3531
|
<td>
|
|
3187
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3532
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 253</span>
|
|
3188
3533
|
|
|
3189
3534
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_navigation_timeout='>default_navigation_timeout=</span><span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
|
3190
3535
|
<span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_default_navigation_timeout'>default_navigation_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span>
|
|
@@ -3233,12 +3578,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3233
3578
|
<pre class="lines">
|
|
3234
3579
|
|
|
3235
3580
|
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3581
|
+
258
|
|
3582
|
+
259
|
|
3583
|
+
260</pre>
|
|
3239
3584
|
</td>
|
|
3240
3585
|
<td>
|
|
3241
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3586
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 258</span>
|
|
3242
3587
|
|
|
3243
3588
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_timeout='>default_timeout=</span><span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
|
3244
3589
|
<span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_default_timeout'>default_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span>
|
|
@@ -3287,13 +3632,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3287
3632
|
<pre class="lines">
|
|
3288
3633
|
|
|
3289
3634
|
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3635
|
+
725
|
|
3636
|
+
726
|
|
3637
|
+
727
|
|
3638
|
+
728</pre>
|
|
3294
3639
|
</td>
|
|
3295
3640
|
<td>
|
|
3296
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3641
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 725</span>
|
|
3297
3642
|
|
|
3298
3643
|
<span class='kw'>def</span> <span class='id identifier rubyid_emulate'>emulate</span><span class='lparen'>(</span><span class='id identifier rubyid_device'>device</span><span class='rparen'>)</span>
|
|
3299
3644
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_viewport'>viewport</span> <span class='op'>=</span> <span class='id identifier rubyid_device'>device</span><span class='period'>.</span><span class='id identifier rubyid_viewport'>viewport</span>
|
|
@@ -3343,18 +3688,18 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3343
3688
|
<pre class="lines">
|
|
3344
3689
|
|
|
3345
3690
|
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3691
|
+
769
|
|
3692
|
+
770
|
|
3693
|
+
771
|
|
3694
|
+
772
|
|
3695
|
+
773
|
|
3696
|
+
774
|
|
3697
|
+
775
|
|
3698
|
+
776
|
|
3699
|
+
777</pre>
|
|
3355
3700
|
</td>
|
|
3356
3701
|
<td>
|
|
3357
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3702
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 769</span>
|
|
3358
3703
|
|
|
3359
3704
|
<span class='kw'>def</span> <span class='id identifier rubyid_emulate_timezone'>emulate_timezone</span><span class='lparen'>(</span><span class='id identifier rubyid_timezone_id'>timezone_id</span><span class='rparen'>)</span>
|
|
3360
3705
|
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Emulation.setTimezoneOverride</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>timezoneId:</span> <span class='id identifier rubyid_timezoneId'>timezoneId</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
@@ -3433,12 +3778,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3433
3778
|
<pre class="lines">
|
|
3434
3779
|
|
|
3435
3780
|
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3781
|
+
791
|
|
3782
|
+
792
|
|
3783
|
+
793</pre>
|
|
3439
3784
|
</td>
|
|
3440
3785
|
<td>
|
|
3441
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3786
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 791</span>
|
|
3442
3787
|
|
|
3443
3788
|
<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>
|
|
3444
3789
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
|
@@ -3511,13 +3856,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3511
3856
|
<pre class="lines">
|
|
3512
3857
|
|
|
3513
3858
|
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3859
|
+
279
|
|
3860
|
+
280
|
|
3861
|
+
281
|
|
3862
|
+
282</pre>
|
|
3518
3863
|
</td>
|
|
3519
3864
|
<td>
|
|
3520
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3865
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 279</span>
|
|
3521
3866
|
|
|
3522
3867
|
<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>
|
|
3523
3868
|
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
|
@@ -3567,12 +3912,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3567
3912
|
<pre class="lines">
|
|
3568
3913
|
|
|
3569
3914
|
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3915
|
+
444
|
|
3916
|
+
445
|
|
3917
|
+
446</pre>
|
|
3573
3918
|
</td>
|
|
3574
3919
|
<td>
|
|
3575
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3920
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 444</span>
|
|
3576
3921
|
|
|
3577
3922
|
<span class='kw'>def</span> <span class='id identifier rubyid_extra_http_headers='>extra_http_headers=</span><span class='lparen'>(</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
|
3578
3923
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_extra_http_headers'>extra_http_headers</span> <span class='op'>=</span> <span class='id identifier rubyid_headers'>headers</span>
|
|
@@ -3621,12 +3966,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3621
3966
|
<pre class="lines">
|
|
3622
3967
|
|
|
3623
3968
|
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3969
|
+
983
|
|
3970
|
+
984
|
|
3971
|
+
985</pre>
|
|
3627
3972
|
</td>
|
|
3628
3973
|
<td>
|
|
3629
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3974
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 983</span>
|
|
3630
3975
|
|
|
3631
3976
|
<span class='kw'>def</span> <span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
|
3632
3977
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
|
@@ -3651,12 +3996,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3651
3996
|
<pre class="lines">
|
|
3652
3997
|
|
|
3653
3998
|
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3999
|
+
235
|
|
4000
|
+
236
|
|
4001
|
+
237</pre>
|
|
3657
4002
|
</td>
|
|
3658
4003
|
<td>
|
|
3659
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4004
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 235</span>
|
|
3660
4005
|
|
|
3661
4006
|
<span class='kw'>def</span> <span class='id identifier rubyid_frames'>frames</span>
|
|
3662
4007
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_frames'>frames</span>
|
|
@@ -3725,12 +4070,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3725
4070
|
<pre class="lines">
|
|
3726
4071
|
|
|
3727
4072
|
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
4073
|
+
702
|
|
4074
|
+
703
|
|
4075
|
+
704</pre>
|
|
3731
4076
|
</td>
|
|
3732
4077
|
<td>
|
|
3733
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4078
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 702</span>
|
|
3734
4079
|
|
|
3735
4080
|
<span class='kw'>def</span> <span class='id identifier rubyid_go_back'>go_back</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
3736
4081
|
<span class='id identifier rubyid_go'>go</span><span class='lparen'>(</span><span class='op'>-</span><span class='int'>1</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
|
@@ -3799,12 +4144,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3799
4144
|
<pre class="lines">
|
|
3800
4145
|
|
|
3801
4146
|
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
4147
|
+
708
|
|
4148
|
+
709
|
|
4149
|
+
710</pre>
|
|
3805
4150
|
</td>
|
|
3806
4151
|
<td>
|
|
3807
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4152
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 708</span>
|
|
3808
4153
|
|
|
3809
4154
|
<span class='kw'>def</span> <span class='id identifier rubyid_go_forward'>go_forward</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
3810
4155
|
<span class='id identifier rubyid_go'>go</span><span class='lparen'>(</span><span class='int'>+1</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
|
@@ -3895,12 +4240,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3895
4240
|
<pre class="lines">
|
|
3896
4241
|
|
|
3897
4242
|
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
4243
|
+
637
|
|
4244
|
+
638
|
|
4245
|
+
639</pre>
|
|
3901
4246
|
</td>
|
|
3902
4247
|
<td>
|
|
3903
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4248
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 637</span>
|
|
3904
4249
|
|
|
3905
4250
|
<span class='kw'>def</span> <span class='id identifier rubyid_goto'>goto</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
3906
4251
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_goto'>goto</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='id identifier rubyid_referer'>referer</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
|
@@ -3908,6 +4253,56 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3908
4253
|
</td>
|
|
3909
4254
|
</tr>
|
|
3910
4255
|
</table>
|
|
4256
|
+
</div>
|
|
4257
|
+
|
|
4258
|
+
<div class="method_details ">
|
|
4259
|
+
<h3 class="signature " id="handle_file_chooser-instance_method">
|
|
4260
|
+
|
|
4261
|
+
#<strong>handle_file_chooser</strong>(event) ⇒ <tt>Object</tt>
|
|
4262
|
+
|
|
4263
|
+
|
|
4264
|
+
|
|
4265
|
+
|
|
4266
|
+
|
|
4267
|
+
</h3><table class="source_code">
|
|
4268
|
+
<tr>
|
|
4269
|
+
<td>
|
|
4270
|
+
<pre class="lines">
|
|
4271
|
+
|
|
4272
|
+
|
|
4273
|
+
127
|
|
4274
|
+
128
|
|
4275
|
+
129
|
|
4276
|
+
130
|
|
4277
|
+
131
|
|
4278
|
+
132
|
|
4279
|
+
133
|
|
4280
|
+
134
|
|
4281
|
+
135
|
|
4282
|
+
136
|
|
4283
|
+
137
|
|
4284
|
+
138
|
|
4285
|
+
139</pre>
|
|
4286
|
+
</td>
|
|
4287
|
+
<td>
|
|
4288
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 127</span>
|
|
4289
|
+
|
|
4290
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_handle_file_chooser'>handle_file_chooser</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
|
4291
|
+
<span class='kw'>return</span> <span class='kw'>if</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
|
4292
|
+
|
|
4293
|
+
<span class='id identifier rubyid_frame'>frame</span> <span class='op'>=</span> <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_frame'>frame</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>frameId</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
|
4294
|
+
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_frame'>frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
|
4295
|
+
<span class='id identifier rubyid_element'>element</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_adopt_backend_node_id'>adopt_backend_node_id</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>backendNodeId</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
|
4296
|
+
<span class='id identifier rubyid_interceptors'>interceptors</span> <span class='op'>=</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span>
|
|
4297
|
+
<span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
|
4298
|
+
<span class='id identifier rubyid_file_chooser'>file_chooser</span> <span class='op'>=</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="FileChooser.html" title="Puppeteer::FileChooser (class)">FileChooser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="FileChooser.html#initialize-instance_method" title="Puppeteer::FileChooser#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='comma'>,</span> <span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
|
4299
|
+
<span class='id identifier rubyid_interceptors'>interceptors</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_promise'>promise</span><span class='op'>|</span>
|
|
4300
|
+
<span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='id identifier rubyid_file_chooser'>file_chooser</span><span class='rparen'>)</span>
|
|
4301
|
+
<span class='kw'>end</span>
|
|
4302
|
+
<span class='kw'>end</span></pre>
|
|
4303
|
+
</td>
|
|
4304
|
+
</tr>
|
|
4305
|
+
</table>
|
|
3911
4306
|
</div>
|
|
3912
4307
|
|
|
3913
4308
|
<div class="method_details ">
|
|
@@ -3949,12 +4344,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3949
4344
|
<pre class="lines">
|
|
3950
4345
|
|
|
3951
4346
|
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
4347
|
+
988
|
|
4348
|
+
989
|
|
4349
|
+
990</pre>
|
|
3955
4350
|
</td>
|
|
3956
4351
|
<td>
|
|
3957
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4352
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 988</span>
|
|
3958
4353
|
|
|
3959
4354
|
<span class='kw'>def</span> <span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
|
3960
4355
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
|
@@ -3979,17 +4374,17 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3979
4374
|
<pre class="lines">
|
|
3980
4375
|
|
|
3981
4376
|
|
|
3982
|
-
116
|
|
3983
|
-
117
|
|
3984
4377
|
118
|
|
3985
4378
|
119
|
|
3986
4379
|
120
|
|
3987
4380
|
121
|
|
3988
4381
|
122
|
|
3989
|
-
123
|
|
4382
|
+
123
|
|
4383
|
+
124
|
|
4384
|
+
125</pre>
|
|
3990
4385
|
</td>
|
|
3991
4386
|
<td>
|
|
3992
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4387
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 118</span>
|
|
3993
4388
|
|
|
3994
4389
|
<span class='kw'>def</span> <span class='id identifier rubyid_init'>init</span>
|
|
3995
4390
|
<span class='id identifier rubyid_await_all'><span class='object_link'><a href="ConcurrentRubyUtils.html#await_all-instance_method" title="Puppeteer::ConcurrentRubyUtils#await_all (method)">await_all</a></span></span><span class='lparen'>(</span>
|
|
@@ -4019,12 +4414,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4019
4414
|
<pre class="lines">
|
|
4020
4415
|
|
|
4021
4416
|
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4417
|
+
229
|
|
4418
|
+
230
|
|
4419
|
+
231</pre>
|
|
4025
4420
|
</td>
|
|
4026
4421
|
<td>
|
|
4027
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4422
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 229</span>
|
|
4028
4423
|
|
|
4029
4424
|
<span class='kw'>def</span> <span class='id identifier rubyid_main_frame'>main_frame</span>
|
|
4030
4425
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_main_frame'>main_frame</span>
|
|
@@ -4049,12 +4444,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4049
4444
|
<pre class="lines">
|
|
4050
4445
|
|
|
4051
4446
|
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4447
|
+
248
|
|
4448
|
+
249
|
|
4449
|
+
250</pre>
|
|
4055
4450
|
</td>
|
|
4056
4451
|
<td>
|
|
4057
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4452
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 248</span>
|
|
4058
4453
|
|
|
4059
4454
|
<span class='kw'>def</span> <span class='id identifier rubyid_offline_mode='>offline_mode=</span><span class='lparen'>(</span><span class='id identifier rubyid_enabled'>enabled</span><span class='rparen'>)</span>
|
|
4060
4455
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_offline_mode'>offline_mode</span> <span class='op'>=</span> <span class='id identifier rubyid_enabled'>enabled</span>
|
|
@@ -4116,13 +4511,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4116
4511
|
<pre class="lines">
|
|
4117
4512
|
|
|
4118
4513
|
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4514
|
+
286
|
|
4515
|
+
287
|
|
4516
|
+
288
|
|
4517
|
+
289</pre>
|
|
4123
4518
|
</td>
|
|
4124
4519
|
<td>
|
|
4125
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4520
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 286</span>
|
|
4126
4521
|
|
|
4127
4522
|
<span class='kw'>def</span> <span class='id identifier rubyid_query_objects'>query_objects</span><span class='lparen'>(</span><span class='id identifier rubyid_prototype_handle'>prototype_handle</span><span class='rparen'>)</span>
|
|
4128
4523
|
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
|
@@ -4136,7 +4531,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4136
4531
|
<div class="method_details ">
|
|
4137
4532
|
<h3 class="signature " id="reload-instance_method">
|
|
4138
4533
|
|
|
4139
|
-
#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒ <tt
|
|
4534
|
+
#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒ <tt>Puppeteer::Response</tt>
|
|
4140
4535
|
|
|
4141
4536
|
|
|
4142
4537
|
|
|
@@ -4154,12 +4549,32 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4154
4549
|
|
|
4155
4550
|
<li>
|
|
4156
4551
|
|
|
4157
|
-
<span class='name'>
|
|
4552
|
+
<span class='name'>timeout</span>
|
|
4158
4553
|
|
|
4159
4554
|
|
|
4160
|
-
<span class='type'>(<tt
|
|
4555
|
+
<span class='type'>(<tt>number|nil</tt>)</span>
|
|
4556
|
+
|
|
4557
|
+
|
|
4558
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
4559
|
+
|
|
4560
|
+
|
|
4561
|
+
</li>
|
|
4562
|
+
|
|
4563
|
+
<li>
|
|
4564
|
+
|
|
4565
|
+
<span class='name'>wait_until</span>
|
|
4566
|
+
|
|
4567
|
+
|
|
4568
|
+
<span class='type'>(<tt>string|nil</tt>)</span>
|
|
4569
|
+
|
|
4570
|
+
|
|
4571
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
4161
4572
|
|
|
4162
4573
|
|
|
4574
|
+
—
|
|
4575
|
+
<div class='inline'>
|
|
4576
|
+
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
|
4577
|
+
</div>
|
|
4163
4578
|
|
|
4164
4579
|
</li>
|
|
4165
4580
|
|
|
@@ -4171,7 +4586,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4171
4586
|
<li>
|
|
4172
4587
|
|
|
4173
4588
|
|
|
4174
|
-
<span class='type'>(<tt
|
|
4589
|
+
<span class='type'>(<tt>Puppeteer::Response</tt>)</span>
|
|
4175
4590
|
|
|
4176
4591
|
|
|
4177
4592
|
|
|
@@ -4185,24 +4600,22 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4185
4600
|
<pre class="lines">
|
|
4186
4601
|
|
|
4187
4602
|
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
621</pre>
|
|
4603
|
+
644
|
|
4604
|
+
645
|
|
4605
|
+
646
|
|
4606
|
+
647
|
|
4607
|
+
648
|
|
4608
|
+
649</pre>
|
|
4195
4609
|
</td>
|
|
4196
4610
|
<td>
|
|
4197
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4611
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 644</span>
|
|
4198
4612
|
|
|
4199
4613
|
<span class='kw'>def</span> <span class='id identifier rubyid_reload'>reload</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
4200
|
-
<span class='
|
|
4201
|
-
</span>
|
|
4202
|
-
</span>
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
</span><span class='kw'>end</span></pre>
|
|
4614
|
+
<span class='id identifier rubyid_await_all'><span class='object_link'><a href="ConcurrentRubyUtils.html#await_all-instance_method" title="Puppeteer::ConcurrentRubyUtils#await_all (method)">await_all</a></span></span><span class='lparen'>(</span>
|
|
4615
|
+
<span class='id identifier rubyid_async_wait_for_navigation'>async_wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span><span class='comma'>,</span>
|
|
4616
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_async_send_message'>async_send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.reload</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
|
4617
|
+
<span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
|
4618
|
+
<span class='kw'>end</span></pre>
|
|
4206
4619
|
</td>
|
|
4207
4620
|
</tr>
|
|
4208
4621
|
</table>
|
|
@@ -4247,12 +4660,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4247
4660
|
<pre class="lines">
|
|
4248
4661
|
|
|
4249
4662
|
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4663
|
+
244
|
|
4664
|
+
245
|
|
4665
|
+
246</pre>
|
|
4253
4666
|
</td>
|
|
4254
4667
|
<td>
|
|
4255
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4668
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 244</span>
|
|
4256
4669
|
|
|
4257
4670
|
<span class='kw'>def</span> <span class='id identifier rubyid_request_interception='>request_interception=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
|
4258
4671
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_request_interception'>request_interception</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
|
@@ -4316,12 +4729,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4316
4729
|
<pre class="lines">
|
|
4317
4730
|
|
|
4318
4731
|
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4732
|
+
265
|
|
4733
|
+
266
|
|
4734
|
+
267</pre>
|
|
4322
4735
|
</td>
|
|
4323
4736
|
<td>
|
|
4324
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4737
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 265</span>
|
|
4325
4738
|
|
|
4326
4739
|
<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>
|
|
4327
4740
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
|
@@ -4362,15 +4775,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4362
4775
|
<pre class="lines">
|
|
4363
4776
|
|
|
4364
4777
|
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4778
|
+
818
|
|
4779
|
+
819
|
|
4780
|
+
820
|
|
4781
|
+
821
|
|
4782
|
+
822
|
|
4783
|
+
823</pre>
|
|
4371
4784
|
</td>
|
|
4372
4785
|
<td>
|
|
4373
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4786
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 818</span>
|
|
4374
4787
|
|
|
4375
4788
|
<span class='kw'>def</span> <span class='id identifier rubyid_screenshot'>screenshot</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
4376
4789
|
<span class='id identifier rubyid_screenshot_options'>screenshot_options</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/ScreenshotOptions.html#initialize-instance_method" title="Puppeteer::Page::ScreenshotOptions#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
|
@@ -4446,12 +4859,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4446
4859
|
<pre class="lines">
|
|
4447
4860
|
|
|
4448
4861
|
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4862
|
+
995
|
|
4863
|
+
996
|
|
4864
|
+
997</pre>
|
|
4452
4865
|
</td>
|
|
4453
4866
|
<td>
|
|
4454
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4867
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 995</span>
|
|
4455
4868
|
|
|
4456
4869
|
<span class='kw'>def</span> <span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
|
4457
4870
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
|
@@ -4511,12 +4924,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4511
4924
|
<pre class="lines">
|
|
4512
4925
|
|
|
4513
4926
|
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4927
|
+
624
|
|
4928
|
+
625
|
|
4929
|
+
626</pre>
|
|
4517
4930
|
</td>
|
|
4518
4931
|
<td>
|
|
4519
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4932
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 624</span>
|
|
4520
4933
|
|
|
4521
4934
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
4522
4935
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
|
@@ -4529,7 +4942,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4529
4942
|
<div class="method_details ">
|
|
4530
4943
|
<h3 class="signature " id="Seval-instance_method">
|
|
4531
4944
|
|
|
4532
|
-
#<strong>Seval</strong>(selector, page_function, *args) ⇒ <tt
|
|
4945
|
+
#<strong>Seval</strong>(selector, page_function, *args) ⇒ <tt>Object</tt>
|
|
4533
4946
|
|
|
4534
4947
|
|
|
4535
4948
|
|
|
@@ -4552,18 +4965,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4552
4965
|
<span class='name'>selector</span>
|
|
4553
4966
|
|
|
4554
4967
|
|
|
4555
|
-
<span class='type'>(<tt>
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
</li>
|
|
4560
|
-
|
|
4561
|
-
<li>
|
|
4562
|
-
|
|
4563
|
-
<span class='name'>pageFunction</span>
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
<span class='type'>(<tt>Function|string</tt>)</span>
|
|
4968
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
4567
4969
|
|
|
4568
4970
|
|
|
4569
4971
|
|
|
@@ -4571,10 +4973,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4571
4973
|
|
|
4572
4974
|
<li>
|
|
4573
4975
|
|
|
4574
|
-
<span class='name'>
|
|
4976
|
+
<span class='name'>page_function</span>
|
|
4575
4977
|
|
|
4576
4978
|
|
|
4577
|
-
<span class='type'>(<tt
|
|
4979
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
4578
4980
|
|
|
4579
4981
|
|
|
4580
4982
|
|
|
@@ -4588,7 +4990,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4588
4990
|
<li>
|
|
4589
4991
|
|
|
4590
4992
|
|
|
4591
|
-
<span class='type'>(<tt
|
|
4993
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
4592
4994
|
|
|
4593
4995
|
|
|
4594
4996
|
|
|
@@ -4602,12 +5004,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4602
5004
|
<pre class="lines">
|
|
4603
5005
|
|
|
4604
5006
|
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
5007
|
+
295
|
|
5008
|
+
296
|
|
5009
|
+
297</pre>
|
|
4608
5010
|
</td>
|
|
4609
5011
|
<td>
|
|
4610
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5012
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 295</span>
|
|
4611
5013
|
|
|
4612
5014
|
<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>
|
|
4613
5015
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
|
@@ -4671,12 +5073,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4671
5073
|
<pre class="lines">
|
|
4672
5074
|
|
|
4673
5075
|
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
5076
|
+
272
|
|
5077
|
+
273
|
|
5078
|
+
274</pre>
|
|
4677
5079
|
</td>
|
|
4678
5080
|
<td>
|
|
4679
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5081
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
|
|
4680
5082
|
|
|
4681
5083
|
<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>
|
|
4682
5084
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
|
@@ -4689,7 +5091,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4689
5091
|
<div class="method_details ">
|
|
4690
5092
|
<h3 class="signature " id="SSeval-instance_method">
|
|
4691
5093
|
|
|
4692
|
-
#<strong>SSeval</strong>(selector, page_function, *args) ⇒ <tt
|
|
5094
|
+
#<strong>SSeval</strong>(selector, page_function, *args) ⇒ <tt>Object</tt>
|
|
4693
5095
|
|
|
4694
5096
|
|
|
4695
5097
|
|
|
@@ -4712,18 +5114,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4712
5114
|
<span class='name'>selector</span>
|
|
4713
5115
|
|
|
4714
5116
|
|
|
4715
|
-
<span class='type'>(<tt>
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
</li>
|
|
4720
|
-
|
|
4721
|
-
<li>
|
|
4722
|
-
|
|
4723
|
-
<span class='name'>pageFunction</span>
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
<span class='type'>(<tt>Function|string</tt>)</span>
|
|
5117
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
4727
5118
|
|
|
4728
5119
|
|
|
4729
5120
|
|
|
@@ -4731,10 +5122,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4731
5122
|
|
|
4732
5123
|
<li>
|
|
4733
5124
|
|
|
4734
|
-
<span class='name'>
|
|
5125
|
+
<span class='name'>page_function</span>
|
|
4735
5126
|
|
|
4736
5127
|
|
|
4737
|
-
<span class='type'>(<tt
|
|
5128
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
4738
5129
|
|
|
4739
5130
|
|
|
4740
5131
|
|
|
@@ -4748,7 +5139,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4748
5139
|
<li>
|
|
4749
5140
|
|
|
4750
5141
|
|
|
4751
|
-
<span class='type'>(<tt
|
|
5142
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
4752
5143
|
|
|
4753
5144
|
|
|
4754
5145
|
|
|
@@ -4762,12 +5153,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4762
5153
|
<pre class="lines">
|
|
4763
5154
|
|
|
4764
5155
|
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
5156
|
+
311
|
|
5157
|
+
312
|
|
5158
|
+
313</pre>
|
|
4768
5159
|
</td>
|
|
4769
5160
|
<td>
|
|
4770
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5161
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 311</span>
|
|
4771
5162
|
|
|
4772
5163
|
<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>
|
|
4773
5164
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
|
@@ -4831,12 +5222,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4831
5222
|
<pre class="lines">
|
|
4832
5223
|
|
|
4833
5224
|
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
5225
|
+
326
|
|
5226
|
+
327
|
|
5227
|
+
328</pre>
|
|
4837
5228
|
</td>
|
|
4838
5229
|
<td>
|
|
4839
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5230
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 326</span>
|
|
4840
5231
|
|
|
4841
5232
|
<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>
|
|
4842
5233
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
|
@@ -4870,7 +5261,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4870
5261
|
<span class='name'>selector</span>
|
|
4871
5262
|
|
|
4872
5263
|
|
|
4873
|
-
<span class='type'>(<tt>
|
|
5264
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
4874
5265
|
|
|
4875
5266
|
|
|
4876
5267
|
|
|
@@ -4885,12 +5276,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4885
5276
|
<pre class="lines">
|
|
4886
5277
|
|
|
4887
5278
|
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
5279
|
+
1000
|
|
5280
|
+
1001
|
|
5281
|
+
1002</pre>
|
|
4891
5282
|
</td>
|
|
4892
5283
|
<td>
|
|
4893
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5284
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1000</span>
|
|
4894
5285
|
|
|
4895
5286
|
<span class='kw'>def</span> <span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
|
4896
5287
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
|
@@ -4937,12 +5328,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4937
5328
|
<pre class="lines">
|
|
4938
5329
|
|
|
4939
5330
|
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
5331
|
+
810
|
|
5332
|
+
811
|
|
5333
|
+
812</pre>
|
|
4943
5334
|
</td>
|
|
4944
5335
|
<td>
|
|
4945
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5336
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 810</span>
|
|
4946
5337
|
|
|
4947
5338
|
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
|
|
4948
5339
|
<span class='ivar'>@title</span>
|
|
@@ -5015,12 +5406,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5015
5406
|
<pre class="lines">
|
|
5016
5407
|
|
|
5017
5408
|
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5409
|
+
1012
|
|
5410
|
+
1013
|
|
5411
|
+
1014</pre>
|
|
5021
5412
|
</td>
|
|
5022
5413
|
<td>
|
|
5023
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5414
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1012</span>
|
|
5024
5415
|
|
|
5025
5416
|
<span class='kw'>def</span> <span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
5026
5417
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='rparen'>)</span>
|
|
@@ -5067,12 +5458,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5067
5458
|
<pre class="lines">
|
|
5068
5459
|
|
|
5069
5460
|
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5461
|
+
613
|
|
5462
|
+
614
|
|
5463
|
+
615</pre>
|
|
5073
5464
|
</td>
|
|
5074
5465
|
<td>
|
|
5075
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5466
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 613</span>
|
|
5076
5467
|
|
|
5077
5468
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
|
5078
5469
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
|
|
@@ -5121,12 +5512,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5121
5512
|
<pre class="lines">
|
|
5122
5513
|
|
|
5123
5514
|
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5515
|
+
449
|
|
5516
|
+
450
|
|
5517
|
+
451</pre>
|
|
5127
5518
|
</td>
|
|
5128
5519
|
<td>
|
|
5129
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5520
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 449</span>
|
|
5130
5521
|
|
|
5131
5522
|
<span class='kw'>def</span> <span class='id identifier rubyid_user_agent='>user_agent=</span><span class='lparen'>(</span><span class='id identifier rubyid_user_agent'>user_agent</span><span class='rparen'>)</span>
|
|
5132
5523
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_user_agent'>user_agent</span> <span class='op'>=</span> <span class='id identifier rubyid_user_agent'>user_agent</span>
|
|
@@ -5134,6 +5525,107 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5134
5525
|
</td>
|
|
5135
5526
|
</tr>
|
|
5136
5527
|
</table>
|
|
5528
|
+
</div>
|
|
5529
|
+
|
|
5530
|
+
<div class="method_details ">
|
|
5531
|
+
<h3 class="signature " id="wait_for_file_chooser-instance_method">
|
|
5532
|
+
|
|
5533
|
+
#<strong>wait_for_file_chooser</strong>(timeout: nil) ⇒ <tt><span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span></tt>
|
|
5534
|
+
|
|
5535
|
+
|
|
5536
|
+
|
|
5537
|
+
|
|
5538
|
+
|
|
5539
|
+
</h3><div class="docstring">
|
|
5540
|
+
<div class="discussion">
|
|
5541
|
+
|
|
5542
|
+
|
|
5543
|
+
</div>
|
|
5544
|
+
</div>
|
|
5545
|
+
<div class="tags">
|
|
5546
|
+
<p class="tag_title">Parameters:</p>
|
|
5547
|
+
<ul class="param">
|
|
5548
|
+
|
|
5549
|
+
<li>
|
|
5550
|
+
|
|
5551
|
+
<span class='name'>timeout</span>
|
|
5552
|
+
|
|
5553
|
+
|
|
5554
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
5555
|
+
|
|
5556
|
+
|
|
5557
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
5558
|
+
|
|
5559
|
+
|
|
5560
|
+
</li>
|
|
5561
|
+
|
|
5562
|
+
</ul>
|
|
5563
|
+
|
|
5564
|
+
<p class="tag_title">Returns:</p>
|
|
5565
|
+
<ul class="return">
|
|
5566
|
+
|
|
5567
|
+
<li>
|
|
5568
|
+
|
|
5569
|
+
|
|
5570
|
+
<span class='type'>(<tt><span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span></tt>)</span>
|
|
5571
|
+
|
|
5572
|
+
|
|
5573
|
+
|
|
5574
|
+
</li>
|
|
5575
|
+
|
|
5576
|
+
</ul>
|
|
5577
|
+
|
|
5578
|
+
</div><table class="source_code">
|
|
5579
|
+
<tr>
|
|
5580
|
+
<td>
|
|
5581
|
+
<pre class="lines">
|
|
5582
|
+
|
|
5583
|
+
|
|
5584
|
+
149
|
|
5585
|
+
150
|
|
5586
|
+
151
|
|
5587
|
+
152
|
|
5588
|
+
153
|
|
5589
|
+
154
|
|
5590
|
+
155
|
|
5591
|
+
156
|
|
5592
|
+
157
|
|
5593
|
+
158
|
|
5594
|
+
159
|
|
5595
|
+
160
|
|
5596
|
+
161
|
|
5597
|
+
162
|
|
5598
|
+
163
|
|
5599
|
+
164
|
|
5600
|
+
165
|
|
5601
|
+
166
|
|
5602
|
+
167</pre>
|
|
5603
|
+
</td>
|
|
5604
|
+
<td>
|
|
5605
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 149</span>
|
|
5606
|
+
|
|
5607
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_file_chooser'>wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
5608
|
+
<span class='kw'>if</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
|
5609
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.setInterceptFileChooserDialog</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>enabled:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
5610
|
+
<span class='kw'>end</span>
|
|
5611
|
+
|
|
5612
|
+
<span class='id identifier rubyid_option_timeout'>option_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>||</span> <span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span>
|
|
5613
|
+
<span class='id identifier rubyid_promise'>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>
|
|
5614
|
+
<span class='ivar'>@file_chooser_interceptors</span> <span class='op'><<</span> <span class='id identifier rubyid_promise'>promise</span>
|
|
5615
|
+
|
|
5616
|
+
<span class='kw'>begin</span>
|
|
5617
|
+
<span class='const'>Timeout</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span><span class='lparen'>(</span><span class='id identifier rubyid_option_timeout'>option_timeout</span> <span class='op'>/</span> <span class='float'>1000.0</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
|
5618
|
+
<span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
|
|
5619
|
+
<span class='kw'>end</span>
|
|
5620
|
+
<span class='kw'>rescue</span> <span class='const'>Timeout</span><span class='op'>::</span><span class='const'>Error</span>
|
|
5621
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Page/FileChooserTimeoutError.html" title="Puppeteer::Page::FileChooserTimeoutError (class)">FileChooserTimeoutError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/FileChooserTimeoutError.html#initialize-instance_method" title="Puppeteer::Page::FileChooserTimeoutError#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_option_timeout'>option_timeout</span><span class='rparen'>)</span>
|
|
5622
|
+
<span class='kw'>ensure</span>
|
|
5623
|
+
<span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_promise'>promise</span><span class='rparen'>)</span>
|
|
5624
|
+
<span class='kw'>end</span>
|
|
5625
|
+
<span class='kw'>end</span></pre>
|
|
5626
|
+
</td>
|
|
5627
|
+
</tr>
|
|
5628
|
+
</table>
|
|
5137
5629
|
</div>
|
|
5138
5630
|
|
|
5139
5631
|
<div class="method_details ">
|
|
@@ -5212,12 +5704,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5212
5704
|
<pre class="lines">
|
|
5213
5705
|
|
|
5214
5706
|
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5707
|
+
1062
|
|
5708
|
+
1063
|
|
5709
|
+
1064</pre>
|
|
5218
5710
|
</td>
|
|
5219
5711
|
<td>
|
|
5220
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5712
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1062</span>
|
|
5221
5713
|
|
|
5222
5714
|
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
5223
5715
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
@@ -5315,12 +5807,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5315
5807
|
<pre class="lines">
|
|
5316
5808
|
|
|
5317
5809
|
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5810
|
+
1030
|
|
5811
|
+
1031
|
|
5812
|
+
1032</pre>
|
|
5321
5813
|
</td>
|
|
5322
5814
|
<td>
|
|
5323
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5815
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1030</span>
|
|
5324
5816
|
|
|
5325
5817
|
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
5326
5818
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
|
@@ -5418,12 +5910,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5418
5910
|
<pre class="lines">
|
|
5419
5911
|
|
|
5420
5912
|
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5913
|
+
1046
|
|
5914
|
+
1047
|
|
5915
|
+
1048</pre>
|
|
5424
5916
|
</td>
|
|
5425
5917
|
<td>
|
|
5426
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5918
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1046</span>
|
|
5427
5919
|
|
|
5428
5920
|
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
5429
5921
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
|
@@ -5448,12 +5940,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5448
5940
|
<pre class="lines">
|
|
5449
5941
|
|
|
5450
5942
|
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5943
|
+
239
|
|
5944
|
+
240
|
|
5945
|
+
241</pre>
|
|
5454
5946
|
</td>
|
|
5455
5947
|
<td>
|
|
5456
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5948
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 239</span>
|
|
5457
5949
|
|
|
5458
5950
|
<span class='kw'>def</span> <span class='id identifier rubyid_workers'>workers</span>
|
|
5459
5951
|
<span class='ivar'>@workers</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span>
|
|
@@ -5468,7 +5960,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5468
5960
|
</div>
|
|
5469
5961
|
|
|
5470
5962
|
<div id="footer">
|
|
5471
|
-
Generated on
|
|
5963
|
+
Generated on Thu Jun 4 23:54:41 2020 by
|
|
5472
5964
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
5473
5965
|
0.9.24 (ruby-2.6.3).
|
|
5474
5966
|
</div>
|