puppeteer-ruby 0.0.8 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/docs/Puppeteer.html +415 -97
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +261 -153
- data/docs/Puppeteer/BrowserContext.html +2 -2
- 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 +2 -2
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +14 -6
- data/docs/Puppeteer/Connection.html +66 -62
- data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
- data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +5 -5
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +12 -12
- data/docs/Puppeteer/ConsoleMessage.html +1 -1
- data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
- data/docs/Puppeteer/DOMWorld.html +106 -32
- 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 +525 -207
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +507 -0
- data/docs/Puppeteer/ElementHandle/BoxModel.html +404 -0
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
- data/docs/Puppeteer/ElementHandle/Point.html +40 -29
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +83 -17
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +1 -1
- 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 +1 -1
- data/docs/Puppeteer/Frame.html +450 -292
- data/docs/Puppeteer/FrameManager.html +23 -27
- 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 +36 -31
- 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 +31 -41
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +2 -2
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +502 -299
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +5 -5
- 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 +110 -39
- data/docs/Puppeteer/Target.html +150 -198
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +2 -2
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +81 -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 +26 -26
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocket/TransportError.html +124 -0
- data/docs/Puppeteer/WebSocketTransport.html +9 -9
- data/docs/Puppeteer/WebSocktTransportError.html +1 -1
- data/docs/_index.html +28 -21
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +3 -1
- data/docs/index.html +3 -1
- data/docs/method_list.html +659 -515
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer.rb +36 -12
- data/lib/puppeteer/browser.rb +26 -6
- data/lib/puppeteer/concurrent_ruby_utils.rb +6 -2
- data/lib/puppeteer/connection.rb +13 -1
- data/lib/puppeteer/dom_world.rb +11 -12
- data/lib/puppeteer/element_handle.rb +66 -108
- data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
- data/lib/puppeteer/element_handle/box_model.rb +19 -0
- data/lib/puppeteer/element_handle/point.rb +26 -0
- data/lib/puppeteer/errors.rb +1 -3
- data/lib/puppeteer/event_callbackable.rb +11 -0
- data/lib/puppeteer/frame.rb +20 -1
- data/lib/puppeteer/launcher.rb +6 -6
- data/lib/puppeteer/launcher/chrome.rb +10 -8
- data/lib/puppeteer/mouse.rb +3 -8
- data/lib/puppeteer/page.rb +43 -4
- data/lib/puppeteer/remote_object.rb +9 -0
- data/lib/puppeteer/target.rb +25 -25
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/viewport.rb +18 -0
- data/lib/puppeteer/web_socket.rb +3 -1
- data/lib/puppeteer/web_socket_transport.rb +8 -8
- data/puppeteer-ruby.png +0 -0
- metadata +9 -4
- data/Dockerfile +0 -6
- data/docker-compose.yml +0 -15
@@ -94,12 +94,23 @@
|
|
94
94
|
|
95
95
|
<dl>
|
96
96
|
<dt>Defined in:</dt>
|
97
|
-
<dd>lib/puppeteer/element_handle.rb</dd>
|
97
|
+
<dd>lib/puppeteer/element_handle/point.rb</dd>
|
98
98
|
</dl>
|
99
99
|
|
100
100
|
</div>
|
101
101
|
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>A class to represent (x, y)-coordinates supporting + and / operators.</p>
|
106
|
+
|
102
107
|
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
103
114
|
|
104
115
|
|
105
116
|
|
@@ -279,13 +290,13 @@
|
|
279
290
|
<pre class="lines">
|
280
291
|
|
281
292
|
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
293
|
+
5
|
294
|
+
6
|
295
|
+
7
|
296
|
+
8</pre>
|
286
297
|
</td>
|
287
298
|
<td>
|
288
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line
|
299
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/point.rb', line 5</span>
|
289
300
|
|
290
301
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>x:</span><span class='comma'>,</span> <span class='label'>y:</span><span class='rparen'>)</span>
|
291
302
|
<span class='ivar'>@x</span> <span class='op'>=</span> <span class='id identifier rubyid_x'>x</span>
|
@@ -329,12 +340,12 @@
|
|
329
340
|
<pre class="lines">
|
330
341
|
|
331
342
|
|
332
|
-
|
333
|
-
|
334
|
-
|
343
|
+
24
|
344
|
+
25
|
345
|
+
26</pre>
|
335
346
|
</td>
|
336
347
|
<td>
|
337
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line
|
348
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/point.rb', line 24</span>
|
338
349
|
|
339
350
|
<span class='kw'>def</span> <span class='id identifier rubyid_x'>x</span>
|
340
351
|
<span class='ivar'>@x</span>
|
@@ -372,12 +383,12 @@
|
|
372
383
|
<pre class="lines">
|
373
384
|
|
374
385
|
|
375
|
-
|
376
|
-
|
377
|
-
|
386
|
+
24
|
387
|
+
25
|
388
|
+
26</pre>
|
378
389
|
</td>
|
379
390
|
<td>
|
380
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line
|
391
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/point.rb', line 24</span>
|
381
392
|
|
382
393
|
<span class='kw'>def</span> <span class='id identifier rubyid_y'>y</span>
|
383
394
|
<span class='ivar'>@y</span>
|
@@ -409,15 +420,15 @@
|
|
409
420
|
<pre class="lines">
|
410
421
|
|
411
422
|
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
423
|
+
10
|
424
|
+
11
|
425
|
+
12
|
426
|
+
13
|
427
|
+
14
|
428
|
+
15</pre>
|
418
429
|
</td>
|
419
430
|
<td>
|
420
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line
|
431
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/point.rb', line 10</span>
|
421
432
|
|
422
433
|
<span class='kw'>def</span> <span class='op'>+</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
423
434
|
<span class='const'><span class='object_link'><a href="" title="Puppeteer::ElementHandle::Point (class)">Point</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::ElementHandle::Point#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
@@ -445,15 +456,15 @@
|
|
445
456
|
<pre class="lines">
|
446
457
|
|
447
458
|
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
459
|
+
17
|
460
|
+
18
|
461
|
+
19
|
462
|
+
20
|
463
|
+
21
|
464
|
+
22</pre>
|
454
465
|
</td>
|
455
466
|
<td>
|
456
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line
|
467
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/point.rb', line 17</span>
|
457
468
|
|
458
469
|
<span class='kw'>def</span> <span class='op'>/</span><span class='lparen'>(</span><span class='id identifier rubyid_num'>num</span><span class='rparen'>)</span>
|
459
470
|
<span class='const'><span class='object_link'><a href="" title="Puppeteer::ElementHandle::Point (class)">Point</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::ElementHandle::Point#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
@@ -471,7 +482,7 @@
|
|
471
482
|
</div>
|
472
483
|
|
473
484
|
<div id="footer">
|
474
|
-
Generated on
|
485
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
475
486
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
476
487
|
0.9.24 (ruby-2.6.3).
|
477
488
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Wed Jun 24 03:08:01 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>
|
@@ -444,7 +444,7 @@
|
|
444
444
|
</div>
|
445
445
|
|
446
446
|
<div id="footer">
|
447
|
-
Generated on
|
447
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
448
448
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
449
449
|
0.9.24 (ruby-2.6.3).
|
450
450
|
</div>
|
@@ -152,6 +152,28 @@
|
|
152
152
|
|
153
153
|
|
154
154
|
|
155
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
156
|
+
|
157
|
+
</li>
|
158
|
+
|
159
|
+
|
160
|
+
<li class="public ">
|
161
|
+
<span class="summary_signature">
|
162
|
+
|
163
|
+
<a href="#observe_first-instance_method" title="#observe_first (instance method)">#<strong>observe_first</strong>(event_name, &block) ⇒ Object </a>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
</span>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
155
177
|
<span class="summary_desc"><div class='inline'></div></span>
|
156
178
|
|
157
179
|
</li>
|
@@ -257,17 +279,6 @@
|
|
257
279
|
<pre class="lines">
|
258
280
|
|
259
281
|
|
260
|
-
47
|
261
|
-
48
|
262
|
-
49
|
263
|
-
50
|
264
|
-
51
|
265
|
-
52
|
266
|
-
53
|
267
|
-
54
|
268
|
-
55
|
269
|
-
56
|
270
|
-
57
|
271
282
|
58
|
272
283
|
59
|
273
284
|
60
|
@@ -297,10 +308,21 @@
|
|
297
308
|
84
|
298
309
|
85
|
299
310
|
86
|
300
|
-
87
|
311
|
+
87
|
312
|
+
88
|
313
|
+
89
|
314
|
+
90
|
315
|
+
91
|
316
|
+
92
|
317
|
+
93
|
318
|
+
94
|
319
|
+
95
|
320
|
+
96
|
321
|
+
97
|
322
|
+
98</pre>
|
301
323
|
</td>
|
302
324
|
<td>
|
303
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/event_callbackable.rb', line
|
325
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/event_callbackable.rb', line 58</span>
|
304
326
|
|
305
327
|
<span class='kw'>def</span> <span class='id identifier rubyid_emit_event'>emit_event</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='rparen'>)</span>
|
306
328
|
<span class='ivar'>@event_callbackable_handlers</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -349,9 +371,9 @@
|
|
349
371
|
</div>
|
350
372
|
|
351
373
|
<div class="method_details ">
|
352
|
-
<h3 class="signature " id="
|
374
|
+
<h3 class="signature " id="observe_first-instance_method">
|
353
375
|
|
354
|
-
#<strong>
|
376
|
+
#<strong>observe_first</strong>(event_name, &block) ⇒ <tt>Object</tt>
|
355
377
|
|
356
378
|
|
357
379
|
|
@@ -366,11 +388,55 @@
|
|
366
388
|
42
|
367
389
|
43
|
368
390
|
44
|
369
|
-
45
|
391
|
+
45
|
392
|
+
46
|
393
|
+
47
|
394
|
+
48
|
395
|
+
49
|
396
|
+
50
|
397
|
+
51</pre>
|
370
398
|
</td>
|
371
399
|
<td>
|
372
400
|
<pre class="code"><span class="info file"># File 'lib/puppeteer/event_callbackable.rb', line 42</span>
|
373
401
|
|
402
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_observe_first'>observe_first</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
403
|
+
<span class='id identifier rubyid_listener_id'>listener_id</span> <span class='op'>=</span> <span class='id identifier rubyid_add_event_listener'>add_event_listener</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='op'>|</span>
|
404
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
405
|
+
<span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
406
|
+
<span class='kw'>else</span>
|
407
|
+
<span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='rparen'>)</span>
|
408
|
+
<span class='kw'>end</span>
|
409
|
+
<span class='id identifier rubyid_remove_event_listener'>remove_event_listener</span><span class='lparen'>(</span><span class='id identifier rubyid_listener_id'>listener_id</span><span class='rparen'>)</span>
|
410
|
+
<span class='kw'>end</span>
|
411
|
+
<span class='kw'>end</span></pre>
|
412
|
+
</td>
|
413
|
+
</tr>
|
414
|
+
</table>
|
415
|
+
</div>
|
416
|
+
|
417
|
+
<div class="method_details ">
|
418
|
+
<h3 class="signature " id="on_event-instance_method">
|
419
|
+
|
420
|
+
#<strong>on_event</strong>(event_name, &block) ⇒ <tt>Object</tt>
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
</h3><table class="source_code">
|
427
|
+
<tr>
|
428
|
+
<td>
|
429
|
+
<pre class="lines">
|
430
|
+
|
431
|
+
|
432
|
+
53
|
433
|
+
54
|
434
|
+
55
|
435
|
+
56</pre>
|
436
|
+
</td>
|
437
|
+
<td>
|
438
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/event_callbackable.rb', line 53</span>
|
439
|
+
|
374
440
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_event'>on_event</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
375
441
|
<span class='ivar'>@event_callbackable_handlers</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
376
442
|
<span class='ivar'>@event_callbackable_handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -423,7 +489,7 @@
|
|
423
489
|
</div>
|
424
490
|
|
425
491
|
<div id="footer">
|
426
|
-
Generated on
|
492
|
+
Generated on Wed Jun 24 03:07:58 2020 by
|
427
493
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
428
494
|
0.9.24 (ruby-2.6.3).
|
429
495
|
</div>
|
@@ -425,7 +425,7 @@
|
|
425
425
|
</div>
|
426
426
|
|
427
427
|
<div id="footer">
|
428
|
-
Generated on
|
428
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
429
429
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
430
430
|
0.9.24 (ruby-2.6.3).
|
431
431
|
</div>
|
@@ -988,7 +988,7 @@
|
|
988
988
|
</div>
|
989
989
|
|
990
990
|
<div id="footer">
|
991
|
-
Generated on
|
991
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
992
992
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
993
993
|
0.9.24 (ruby-2.6.3).
|
994
994
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Wed Jun 24 03:08:01 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>
|
@@ -347,7 +347,7 @@
|
|
347
347
|
</div>
|
348
348
|
|
349
349
|
<div id="footer">
|
350
|
-
Generated on
|
350
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
351
351
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
352
352
|
0.9.24 (ruby-2.6.3).
|
353
353
|
</div>
|
@@ -379,7 +379,7 @@
|
|
379
379
|
</div>
|
380
380
|
|
381
381
|
<div id="footer">
|
382
|
-
Generated on
|
382
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
383
383
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
384
384
|
0.9.24 (ruby-2.6.3).
|
385
385
|
</div>
|
@@ -445,7 +445,7 @@
|
|
445
445
|
</div>
|
446
446
|
|
447
447
|
<div id="footer">
|
448
|
-
Generated on
|
448
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
449
449
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
450
450
|
0.9.24 (ruby-2.6.3).
|
451
451
|
</div>
|
data/docs/Puppeteer/Frame.html
CHANGED
@@ -320,6 +320,50 @@
|
|
320
320
|
|
321
321
|
|
322
322
|
|
323
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
324
|
+
|
325
|
+
</li>
|
326
|
+
|
327
|
+
|
328
|
+
<li class="public ">
|
329
|
+
<span class="summary_signature">
|
330
|
+
|
331
|
+
<a href="#async_click-instance_method" title="#async_click (instance method)">#<strong>async_click</strong> ⇒ Future </a>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
</span>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
346
|
+
|
347
|
+
</li>
|
348
|
+
|
349
|
+
|
350
|
+
<li class="public ">
|
351
|
+
<span class="summary_signature">
|
352
|
+
|
353
|
+
<a href="#async_wait_for_navigation-instance_method" title="#async_wait_for_navigation (instance method)">#<strong>async_wait_for_navigation</strong> ⇒ Future </a>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
</span>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
323
367
|
<span class="summary_desc"><div class='inline'></div></span>
|
324
368
|
|
325
369
|
</li>
|
@@ -914,7 +958,7 @@
|
|
914
958
|
<li class="public ">
|
915
959
|
<span class="summary_signature">
|
916
960
|
|
917
|
-
<a href="#title-instance_method" title="#title (instance method)">#<strong>title</strong> ⇒
|
961
|
+
<a href="#title-instance_method" title="#title (instance method)">#<strong>title</strong> ⇒ String </a>
|
918
962
|
|
919
963
|
|
920
964
|
|
@@ -994,28 +1038,6 @@
|
|
994
1038
|
|
995
1039
|
|
996
1040
|
|
997
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
998
|
-
|
999
|
-
</li>
|
1000
|
-
|
1001
|
-
|
1002
|
-
<li class="public ">
|
1003
|
-
<span class="summary_signature">
|
1004
|
-
|
1005
|
-
<a href="#wait_for_navigation-instance_method" title="#wait_for_navigation (instance method)">#<strong>wait_for_navigation</strong>(timeout: nil, wait_until: nil) ⇒ Object </a>
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
</span>
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
1041
|
<span class="summary_desc"><div class='inline'></div></span>
|
1020
1042
|
|
1021
1043
|
</li>
|
@@ -1145,8 +1167,6 @@
|
|
1145
1167
|
<pre class="lines">
|
1146
1168
|
|
1147
1169
|
|
1148
|
-
6
|
1149
|
-
7
|
1150
1170
|
8
|
1151
1171
|
9
|
1152
1172
|
10
|
@@ -1160,10 +1180,12 @@
|
|
1160
1180
|
18
|
1161
1181
|
19
|
1162
1182
|
20
|
1163
|
-
21
|
1183
|
+
21
|
1184
|
+
22
|
1185
|
+
23</pre>
|
1164
1186
|
</td>
|
1165
1187
|
<td>
|
1166
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1188
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 8</span>
|
1167
1189
|
|
1168
1190
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='comma'>,</span> <span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span><span class='comma'>,</span> <span class='id identifier rubyid_frame_id'>frame_id</span><span class='rparen'>)</span>
|
1169
1191
|
<span class='ivar'>@frame_manager</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span>
|
@@ -1219,12 +1241,12 @@
|
|
1219
1241
|
<pre class="lines">
|
1220
1242
|
|
1221
1243
|
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1244
|
+
25
|
1245
|
+
26
|
1246
|
+
27</pre>
|
1225
1247
|
</td>
|
1226
1248
|
<td>
|
1227
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1249
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1228
1250
|
|
1229
1251
|
<span class='kw'>def</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span>
|
1230
1252
|
<span class='ivar'>@frame_manager</span>
|
@@ -1262,12 +1284,12 @@
|
|
1262
1284
|
<pre class="lines">
|
1263
1285
|
|
1264
1286
|
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1287
|
+
25
|
1288
|
+
26
|
1289
|
+
27</pre>
|
1268
1290
|
</td>
|
1269
1291
|
<td>
|
1270
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1292
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1271
1293
|
|
1272
1294
|
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
1273
1295
|
<span class='ivar'>@id</span>
|
@@ -1305,12 +1327,12 @@
|
|
1305
1327
|
<pre class="lines">
|
1306
1328
|
|
1307
1329
|
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1330
|
+
25
|
1331
|
+
26
|
1332
|
+
27</pre>
|
1311
1333
|
</td>
|
1312
1334
|
<td>
|
1313
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1335
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1314
1336
|
|
1315
1337
|
<span class='kw'>def</span> <span class='id identifier rubyid_lifecycle_events'>lifecycle_events</span>
|
1316
1338
|
<span class='ivar'>@lifecycle_events</span>
|
@@ -1348,12 +1370,12 @@
|
|
1348
1370
|
<pre class="lines">
|
1349
1371
|
|
1350
1372
|
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1373
|
+
25
|
1374
|
+
26
|
1375
|
+
27</pre>
|
1354
1376
|
</td>
|
1355
1377
|
<td>
|
1356
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1378
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1357
1379
|
|
1358
1380
|
<span class='kw'>def</span> <span class='id identifier rubyid_loader_id'>loader_id</span>
|
1359
1381
|
<span class='ivar'>@loader_id</span>
|
@@ -1391,12 +1413,12 @@
|
|
1391
1413
|
<pre class="lines">
|
1392
1414
|
|
1393
1415
|
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1416
|
+
25
|
1417
|
+
26
|
1418
|
+
27</pre>
|
1397
1419
|
</td>
|
1398
1420
|
<td>
|
1399
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1421
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1400
1422
|
|
1401
1423
|
<span class='kw'>def</span> <span class='id identifier rubyid_main_world'>main_world</span>
|
1402
1424
|
<span class='ivar'>@main_world</span>
|
@@ -1434,12 +1456,12 @@
|
|
1434
1456
|
<pre class="lines">
|
1435
1457
|
|
1436
1458
|
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1459
|
+
25
|
1460
|
+
26
|
1461
|
+
27</pre>
|
1440
1462
|
</td>
|
1441
1463
|
<td>
|
1442
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1464
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1443
1465
|
|
1444
1466
|
<span class='kw'>def</span> <span class='id identifier rubyid_secondary_world'>secondary_world</span>
|
1445
1467
|
<span class='ivar'>@secondary_world</span>
|
@@ -1508,12 +1530,12 @@
|
|
1508
1530
|
<pre class="lines">
|
1509
1531
|
|
1510
1532
|
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1533
|
+
145
|
1534
|
+
146
|
1535
|
+
147</pre>
|
1514
1536
|
</td>
|
1515
1537
|
<td>
|
1516
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1538
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 145</span>
|
1517
1539
|
|
1518
1540
|
<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>
|
1519
1541
|
<span class='ivar'>@main_world</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>
|
@@ -1575,12 +1597,12 @@
|
|
1575
1597
|
<pre class="lines">
|
1576
1598
|
|
1577
1599
|
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1600
|
+
151
|
1601
|
+
152
|
1602
|
+
153</pre>
|
1581
1603
|
</td>
|
1582
1604
|
<td>
|
1583
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1605
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 151</span>
|
1584
1606
|
|
1585
1607
|
<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>
|
1586
1608
|
<span class='ivar'>@main_world</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>
|
@@ -1588,6 +1610,194 @@
|
|
1588
1610
|
</td>
|
1589
1611
|
</tr>
|
1590
1612
|
</table>
|
1613
|
+
</div>
|
1614
|
+
|
1615
|
+
<div class="method_details ">
|
1616
|
+
<h3 class="signature " id="async_click-instance_method">
|
1617
|
+
|
1618
|
+
#<strong>async_click</strong> ⇒ <tt>Future</tt>
|
1619
|
+
|
1620
|
+
|
1621
|
+
|
1622
|
+
|
1623
|
+
|
1624
|
+
</h3><div class="docstring">
|
1625
|
+
<div class="discussion">
|
1626
|
+
|
1627
|
+
|
1628
|
+
</div>
|
1629
|
+
</div>
|
1630
|
+
<div class="tags">
|
1631
|
+
<p class="tag_title">Parameters:</p>
|
1632
|
+
<ul class="param">
|
1633
|
+
|
1634
|
+
<li>
|
1635
|
+
|
1636
|
+
<span class='name'>selector</span>
|
1637
|
+
|
1638
|
+
|
1639
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1640
|
+
|
1641
|
+
|
1642
|
+
|
1643
|
+
</li>
|
1644
|
+
|
1645
|
+
<li>
|
1646
|
+
|
1647
|
+
<span class='name'>delay</span>
|
1648
|
+
|
1649
|
+
|
1650
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
1651
|
+
|
1652
|
+
|
1653
|
+
|
1654
|
+
</li>
|
1655
|
+
|
1656
|
+
<li>
|
1657
|
+
|
1658
|
+
<span class='name'>button</span>
|
1659
|
+
|
1660
|
+
|
1661
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1662
|
+
|
1663
|
+
|
1664
|
+
|
1665
|
+
—
|
1666
|
+
<div class='inline'>
|
1667
|
+
<p>“left”|“right”|“middle”</p>
|
1668
|
+
</div>
|
1669
|
+
|
1670
|
+
</li>
|
1671
|
+
|
1672
|
+
<li>
|
1673
|
+
|
1674
|
+
<span class='name'>click_count</span>
|
1675
|
+
|
1676
|
+
|
1677
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
1678
|
+
|
1679
|
+
|
1680
|
+
|
1681
|
+
</li>
|
1682
|
+
|
1683
|
+
</ul>
|
1684
|
+
|
1685
|
+
<p class="tag_title">Returns:</p>
|
1686
|
+
<ul class="return">
|
1687
|
+
|
1688
|
+
<li>
|
1689
|
+
|
1690
|
+
|
1691
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
1692
|
+
|
1693
|
+
|
1694
|
+
|
1695
|
+
</li>
|
1696
|
+
|
1697
|
+
</ul>
|
1698
|
+
|
1699
|
+
</div><table class="source_code">
|
1700
|
+
<tr>
|
1701
|
+
<td>
|
1702
|
+
<pre class="lines">
|
1703
|
+
|
1704
|
+
|
1705
|
+
160
|
1706
|
+
161
|
1707
|
+
162</pre>
|
1708
|
+
</td>
|
1709
|
+
<td>
|
1710
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 160</span>
|
1711
|
+
|
1712
|
+
<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>
|
1713
|
+
<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>
|
1714
|
+
<span class='kw'>end</span></pre>
|
1715
|
+
</td>
|
1716
|
+
</tr>
|
1717
|
+
</table>
|
1718
|
+
</div>
|
1719
|
+
|
1720
|
+
<div class="method_details ">
|
1721
|
+
<h3 class="signature " id="async_wait_for_navigation-instance_method">
|
1722
|
+
|
1723
|
+
#<strong>async_wait_for_navigation</strong> ⇒ <tt>Future</tt>
|
1724
|
+
|
1725
|
+
|
1726
|
+
|
1727
|
+
|
1728
|
+
|
1729
|
+
</h3><div class="docstring">
|
1730
|
+
<div class="discussion">
|
1731
|
+
|
1732
|
+
|
1733
|
+
</div>
|
1734
|
+
</div>
|
1735
|
+
<div class="tags">
|
1736
|
+
<p class="tag_title">Parameters:</p>
|
1737
|
+
<ul class="param">
|
1738
|
+
|
1739
|
+
<li>
|
1740
|
+
|
1741
|
+
<span class='name'>timeout</span>
|
1742
|
+
|
1743
|
+
|
1744
|
+
<span class='type'>(<tt>number|nil</tt>)</span>
|
1745
|
+
|
1746
|
+
|
1747
|
+
|
1748
|
+
</li>
|
1749
|
+
|
1750
|
+
<li>
|
1751
|
+
|
1752
|
+
<span class='name'>wait_until</span>
|
1753
|
+
|
1754
|
+
|
1755
|
+
<span class='type'>(<tt>string|nil</tt>)</span>
|
1756
|
+
|
1757
|
+
|
1758
|
+
|
1759
|
+
—
|
1760
|
+
<div class='inline'>
|
1761
|
+
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
1762
|
+
</div>
|
1763
|
+
|
1764
|
+
</li>
|
1765
|
+
|
1766
|
+
</ul>
|
1767
|
+
|
1768
|
+
<p class="tag_title">Returns:</p>
|
1769
|
+
<ul class="return">
|
1770
|
+
|
1771
|
+
<li>
|
1772
|
+
|
1773
|
+
|
1774
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
1775
|
+
|
1776
|
+
|
1777
|
+
|
1778
|
+
</li>
|
1779
|
+
|
1780
|
+
</ul>
|
1781
|
+
|
1782
|
+
</div><table class="source_code">
|
1783
|
+
<tr>
|
1784
|
+
<td>
|
1785
|
+
<pre class="lines">
|
1786
|
+
|
1787
|
+
|
1788
|
+
45
|
1789
|
+
46
|
1790
|
+
47</pre>
|
1791
|
+
</td>
|
1792
|
+
<td>
|
1793
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 45</span>
|
1794
|
+
|
1795
|
+
<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>
|
1796
|
+
<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>
|
1797
|
+
<span class='kw'>end</span></pre>
|
1798
|
+
</td>
|
1799
|
+
</tr>
|
1800
|
+
</table>
|
1591
1801
|
</div>
|
1592
1802
|
|
1593
1803
|
<div class="method_details ">
|
@@ -1605,12 +1815,12 @@
|
|
1605
1815
|
<pre class="lines">
|
1606
1816
|
|
1607
1817
|
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1818
|
+
135
|
1819
|
+
136
|
1820
|
+
137</pre>
|
1611
1821
|
</td>
|
1612
1822
|
<td>
|
1613
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1823
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 135</span>
|
1614
1824
|
|
1615
1825
|
<span class='kw'>def</span> <span class='id identifier rubyid_child_frames'>child_frames</span>
|
1616
1826
|
<span class='ivar'>@child_frames</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
@@ -1703,12 +1913,12 @@
|
|
1703
1913
|
<pre class="lines">
|
1704
1914
|
|
1705
1915
|
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1916
|
+
168
|
1917
|
+
169
|
1918
|
+
170</pre>
|
1709
1919
|
</td>
|
1710
1920
|
<td>
|
1711
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1921
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 168</span>
|
1712
1922
|
|
1713
1923
|
<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>
|
1714
1924
|
<span class='ivar'>@secondary_world</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>
|
@@ -1733,12 +1943,12 @@
|
|
1733
1943
|
<pre class="lines">
|
1734
1944
|
|
1735
1945
|
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1946
|
+
106
|
1947
|
+
107
|
1948
|
+
108</pre>
|
1739
1949
|
</td>
|
1740
1950
|
<td>
|
1741
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1951
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 106</span>
|
1742
1952
|
|
1743
1953
|
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
1744
1954
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
@@ -1763,18 +1973,18 @@
|
|
1763
1973
|
<pre class="lines">
|
1764
1974
|
|
1765
1975
|
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1976
|
+
296
|
1977
|
+
297
|
1978
|
+
298
|
1979
|
+
299
|
1980
|
+
300
|
1981
|
+
301
|
1982
|
+
302
|
1983
|
+
303
|
1984
|
+
304</pre>
|
1775
1985
|
</td>
|
1776
1986
|
<td>
|
1777
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1987
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 296</span>
|
1778
1988
|
|
1779
1989
|
<span class='kw'>def</span> <span class='id identifier rubyid_detach'>detach</span>
|
1780
1990
|
<span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>true</span>
|
@@ -1827,12 +2037,12 @@
|
|
1827
2037
|
<pre class="lines">
|
1828
2038
|
|
1829
2039
|
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
2040
|
+
139
|
2041
|
+
140
|
2042
|
+
141</pre>
|
1833
2043
|
</td>
|
1834
2044
|
<td>
|
1835
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2045
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 139</span>
|
1836
2046
|
|
1837
2047
|
<span class='kw'>def</span> <span class='id identifier rubyid_detached?'>detached?</span>
|
1838
2048
|
<span class='ivar'>@detached</span>
|
@@ -1892,12 +2102,12 @@
|
|
1892
2102
|
<pre class="lines">
|
1893
2103
|
|
1894
2104
|
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
2105
|
+
61
|
2106
|
+
62
|
2107
|
+
63</pre>
|
1898
2108
|
</td>
|
1899
2109
|
<td>
|
1900
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2110
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 61</span>
|
1901
2111
|
|
1902
2112
|
<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>
|
1903
2113
|
<span class='ivar'>@main_world</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>
|
@@ -1959,12 +2169,12 @@
|
|
1959
2169
|
<pre class="lines">
|
1960
2170
|
|
1961
2171
|
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
2172
|
+
55
|
2173
|
+
56
|
2174
|
+
57</pre>
|
1965
2175
|
</td>
|
1966
2176
|
<td>
|
1967
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2177
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 55</span>
|
1968
2178
|
|
1969
2179
|
<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>
|
1970
2180
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
@@ -1989,12 +2199,12 @@
|
|
1989
2199
|
<pre class="lines">
|
1990
2200
|
|
1991
2201
|
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
2202
|
+
49
|
2203
|
+
50
|
2204
|
+
51</pre>
|
1995
2205
|
</td>
|
1996
2206
|
<td>
|
1997
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2207
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 49</span>
|
1998
2208
|
|
1999
2209
|
<span class='kw'>def</span> <span class='id identifier rubyid_execution_context'>execution_context</span>
|
2000
2210
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
@@ -2043,12 +2253,12 @@
|
|
2043
2253
|
<pre class="lines">
|
2044
2254
|
|
2045
2255
|
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2256
|
+
173
|
2257
|
+
174
|
2258
|
+
175</pre>
|
2049
2259
|
</td>
|
2050
2260
|
<td>
|
2051
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2261
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 173</span>
|
2052
2262
|
|
2053
2263
|
<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>
|
2054
2264
|
<span class='ivar'>@secondary_world</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>
|
@@ -2152,12 +2362,12 @@
|
|
2152
2362
|
<pre class="lines">
|
2153
2363
|
|
2154
2364
|
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2365
|
+
32
|
2366
|
+
33
|
2367
|
+
34</pre>
|
2158
2368
|
</td>
|
2159
2369
|
<td>
|
2160
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2370
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 32</span>
|
2161
2371
|
|
2162
2372
|
<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>
|
2163
2373
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_navigate_frame'>navigate_frame</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</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>
|
@@ -2182,16 +2392,16 @@
|
|
2182
2392
|
<pre class="lines">
|
2183
2393
|
|
2184
2394
|
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2395
|
+
283
|
2396
|
+
284
|
2397
|
+
285
|
2398
|
+
286
|
2399
|
+
287
|
2400
|
+
288
|
2401
|
+
289</pre>
|
2192
2402
|
</td>
|
2193
2403
|
<td>
|
2194
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2404
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 283</span>
|
2195
2405
|
|
2196
2406
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_lifecycle_event'>handle_lifecycle_event</span><span class='lparen'>(</span><span class='id identifier rubyid_loader_id'>loader_id</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
2197
2407
|
<span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>init</span><span class='tstring_end'>'</span></span>
|
@@ -2220,13 +2430,13 @@
|
|
2220
2430
|
<pre class="lines">
|
2221
2431
|
|
2222
2432
|
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2433
|
+
291
|
2434
|
+
292
|
2435
|
+
293
|
2436
|
+
294</pre>
|
2227
2437
|
</td>
|
2228
2438
|
<td>
|
2229
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2439
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 291</span>
|
2230
2440
|
|
2231
2441
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_loading_stopped'>handle_loading_stopped</span>
|
2232
2442
|
<span class='ivar'>@lifecycle_events</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DOMContentLoaded</span><span class='tstring_end'>'</span></span>
|
@@ -2276,12 +2486,12 @@
|
|
2276
2486
|
<pre class="lines">
|
2277
2487
|
|
2278
2488
|
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2489
|
+
178
|
2490
|
+
179
|
2491
|
+
180</pre>
|
2282
2492
|
</td>
|
2283
2493
|
<td>
|
2284
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2494
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 178</span>
|
2285
2495
|
|
2286
2496
|
<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>
|
2287
2497
|
<span class='ivar'>@secondary_world</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>
|
@@ -2328,12 +2538,12 @@
|
|
2328
2538
|
<pre class="lines">
|
2329
2539
|
|
2330
2540
|
|
2331
|
-
|
2332
|
-
|
2333
|
-
|
2541
|
+
117
|
2542
|
+
118
|
2543
|
+
119</pre>
|
2334
2544
|
</td>
|
2335
2545
|
<td>
|
2336
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2546
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 117</span>
|
2337
2547
|
|
2338
2548
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
2339
2549
|
<span class='ivar'>@name</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
@@ -2382,19 +2592,19 @@
|
|
2382
2592
|
<pre class="lines">
|
2383
2593
|
|
2384
2594
|
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2595
|
+
267
|
2596
|
+
268
|
2597
|
+
269
|
2598
|
+
270
|
2599
|
+
271
|
2600
|
+
272
|
2601
|
+
273
|
2602
|
+
274
|
2603
|
+
275
|
2604
|
+
276</pre>
|
2395
2605
|
</td>
|
2396
2606
|
<td>
|
2397
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2607
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 267</span>
|
2398
2608
|
|
2399
2609
|
<span class='kw'>def</span> <span class='id identifier rubyid_navigated'>navigated</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='rparen'>)</span>
|
2400
2610
|
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
@@ -2450,12 +2660,12 @@
|
|
2450
2660
|
<pre class="lines">
|
2451
2661
|
|
2452
2662
|
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2663
|
+
279
|
2664
|
+
280
|
2665
|
+
281</pre>
|
2456
2666
|
</td>
|
2457
2667
|
<td>
|
2458
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2668
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 279</span>
|
2459
2669
|
|
2460
2670
|
<span class='kw'>def</span> <span class='id identifier rubyid_navigated_within_document'>navigated_within_document</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
|
2461
2671
|
<span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
|
@@ -2502,12 +2712,12 @@
|
|
2502
2712
|
<pre class="lines">
|
2503
2713
|
|
2504
2714
|
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2715
|
+
127
|
2716
|
+
128
|
2717
|
+
129</pre>
|
2508
2718
|
</td>
|
2509
2719
|
<td>
|
2510
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2720
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 127</span>
|
2511
2721
|
|
2512
2722
|
<span class='kw'>def</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span>
|
2513
2723
|
<span class='ivar'>@parent_frame</span>
|
@@ -2571,12 +2781,12 @@
|
|
2571
2781
|
<pre class="lines">
|
2572
2782
|
|
2573
2783
|
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2784
|
+
68
|
2785
|
+
69
|
2786
|
+
70</pre>
|
2577
2787
|
</td>
|
2578
2788
|
<td>
|
2579
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2789
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 68</span>
|
2580
2790
|
|
2581
2791
|
<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>
|
2582
2792
|
<span class='ivar'>@main_world</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>
|
@@ -2649,12 +2859,12 @@
|
|
2649
2859
|
<pre class="lines">
|
2650
2860
|
|
2651
2861
|
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2862
|
+
185
|
2863
|
+
186
|
2864
|
+
187</pre>
|
2655
2865
|
</td>
|
2656
2866
|
<td>
|
2657
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2867
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 185</span>
|
2658
2868
|
|
2659
2869
|
<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>
|
2660
2870
|
<span class='ivar'>@secondary_world</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>
|
@@ -2714,12 +2924,12 @@
|
|
2714
2924
|
<pre class="lines">
|
2715
2925
|
|
2716
2926
|
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2927
|
+
112
|
2928
|
+
113
|
2929
|
+
114</pre>
|
2720
2930
|
</td>
|
2721
2931
|
<td>
|
2722
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2932
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 112</span>
|
2723
2933
|
|
2724
2934
|
<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>
|
2725
2935
|
<span class='ivar'>@secondary_world</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>
|
@@ -2805,12 +3015,12 @@
|
|
2805
3015
|
<pre class="lines">
|
2806
3016
|
|
2807
3017
|
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
3018
|
+
86
|
3019
|
+
87
|
3020
|
+
88</pre>
|
2811
3021
|
</td>
|
2812
3022
|
<td>
|
2813
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3023
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 86</span>
|
2814
3024
|
|
2815
3025
|
<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>
|
2816
3026
|
<span class='ivar'>@main_world</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>
|
@@ -2874,12 +3084,12 @@
|
|
2874
3084
|
<pre class="lines">
|
2875
3085
|
|
2876
3086
|
|
2877
|
-
|
2878
|
-
|
2879
|
-
|
3087
|
+
102
|
3088
|
+
103
|
3089
|
+
104</pre>
|
2880
3090
|
</td>
|
2881
3091
|
<td>
|
2882
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3092
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 102</span>
|
2883
3093
|
|
2884
3094
|
<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>
|
2885
3095
|
<span class='ivar'>@main_world</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>
|
@@ -2965,12 +3175,12 @@
|
|
2965
3175
|
<pre class="lines">
|
2966
3176
|
|
2967
3177
|
|
2968
|
-
|
2969
|
-
|
2970
|
-
|
3178
|
+
95
|
3179
|
+
96
|
3180
|
+
97</pre>
|
2971
3181
|
</td>
|
2972
3182
|
<td>
|
2973
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3183
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 95</span>
|
2974
3184
|
|
2975
3185
|
<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>
|
2976
3186
|
<span class='ivar'>@main_world</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>
|
@@ -3034,12 +3244,12 @@
|
|
3034
3244
|
<pre class="lines">
|
3035
3245
|
|
3036
3246
|
|
3037
|
-
|
3038
|
-
|
3039
|
-
|
3247
|
+
76
|
3248
|
+
77
|
3249
|
+
78</pre>
|
3040
3250
|
</td>
|
3041
3251
|
<td>
|
3042
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3252
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 76</span>
|
3043
3253
|
|
3044
3254
|
<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>
|
3045
3255
|
<span class='ivar'>@main_world</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>
|
@@ -3088,12 +3298,12 @@
|
|
3088
3298
|
<pre class="lines">
|
3089
3299
|
|
3090
3300
|
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3301
|
+
190
|
3302
|
+
191
|
3303
|
+
192</pre>
|
3094
3304
|
</td>
|
3095
3305
|
<td>
|
3096
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3306
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 190</span>
|
3097
3307
|
|
3098
3308
|
<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>
|
3099
3309
|
<span class='ivar'>@secondary_world</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>
|
@@ -3106,24 +3316,46 @@
|
|
3106
3316
|
<div class="method_details ">
|
3107
3317
|
<h3 class="signature " id="title-instance_method">
|
3108
3318
|
|
3109
|
-
#<strong>title</strong> ⇒ <tt>
|
3319
|
+
#<strong>title</strong> ⇒ <tt>String</tt>
|
3110
3320
|
|
3111
3321
|
|
3112
3322
|
|
3113
3323
|
|
3114
3324
|
|
3115
|
-
</h3><
|
3325
|
+
</h3><div class="docstring">
|
3326
|
+
<div class="discussion">
|
3327
|
+
|
3328
|
+
|
3329
|
+
</div>
|
3330
|
+
</div>
|
3331
|
+
<div class="tags">
|
3332
|
+
|
3333
|
+
<p class="tag_title">Returns:</p>
|
3334
|
+
<ul class="return">
|
3335
|
+
|
3336
|
+
<li>
|
3337
|
+
|
3338
|
+
|
3339
|
+
<span class='type'>(<tt>String</tt>)</span>
|
3340
|
+
|
3341
|
+
|
3342
|
+
|
3343
|
+
</li>
|
3344
|
+
|
3345
|
+
</ul>
|
3346
|
+
|
3347
|
+
</div><table class="source_code">
|
3116
3348
|
<tr>
|
3117
3349
|
<td>
|
3118
3350
|
<pre class="lines">
|
3119
3351
|
|
3120
3352
|
|
3121
|
-
|
3122
|
-
|
3123
|
-
|
3353
|
+
262
|
3354
|
+
263
|
3355
|
+
264</pre>
|
3124
3356
|
</td>
|
3125
3357
|
<td>
|
3126
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3358
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 262</span>
|
3127
3359
|
|
3128
3360
|
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
|
3129
3361
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_title'>title</span>
|
@@ -3196,12 +3428,12 @@
|
|
3196
3428
|
<pre class="lines">
|
3197
3429
|
|
3198
3430
|
|
3199
|
-
|
3200
|
-
|
3201
|
-
|
3431
|
+
197
|
3432
|
+
198
|
3433
|
+
199</pre>
|
3202
3434
|
</td>
|
3203
3435
|
<td>
|
3204
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3436
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 197</span>
|
3205
3437
|
|
3206
3438
|
<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>
|
3207
3439
|
<span class='ivar'>@main_world</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>
|
@@ -3248,12 +3480,12 @@
|
|
3248
3480
|
<pre class="lines">
|
3249
3481
|
|
3250
3482
|
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3483
|
+
122
|
3484
|
+
123
|
3485
|
+
124</pre>
|
3254
3486
|
</td>
|
3255
3487
|
<td>
|
3256
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3488
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 122</span>
|
3257
3489
|
|
3258
3490
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
3259
3491
|
<span class='ivar'>@url</span>
|
@@ -3339,12 +3571,12 @@
|
|
3339
3571
|
<pre class="lines">
|
3340
3572
|
|
3341
3573
|
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3574
|
+
257
|
3575
|
+
258
|
3576
|
+
259</pre>
|
3345
3577
|
</td>
|
3346
3578
|
<td>
|
3347
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3579
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 257</span>
|
3348
3580
|
|
3349
3581
|
<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>
|
3350
3582
|
<span class='ivar'>@main_world</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>
|
@@ -3352,80 +3584,6 @@
|
|
3352
3584
|
</td>
|
3353
3585
|
</tr>
|
3354
3586
|
</table>
|
3355
|
-
</div>
|
3356
|
-
|
3357
|
-
<div class="method_details ">
|
3358
|
-
<h3 class="signature " id="wait_for_navigation-instance_method">
|
3359
|
-
|
3360
|
-
#<strong>wait_for_navigation</strong>(timeout: nil, wait_until: nil) ⇒ <tt>Object</tt>
|
3361
|
-
|
3362
|
-
|
3363
|
-
|
3364
|
-
|
3365
|
-
|
3366
|
-
</h3><div class="docstring">
|
3367
|
-
<div class="discussion">
|
3368
|
-
|
3369
|
-
|
3370
|
-
</div>
|
3371
|
-
</div>
|
3372
|
-
<div class="tags">
|
3373
|
-
<p class="tag_title">Parameters:</p>
|
3374
|
-
<ul class="param">
|
3375
|
-
|
3376
|
-
<li>
|
3377
|
-
|
3378
|
-
<span class='name'>timeout</span>
|
3379
|
-
|
3380
|
-
|
3381
|
-
<span class='type'>(<tt>number|nil</tt>)</span>
|
3382
|
-
|
3383
|
-
|
3384
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3385
|
-
|
3386
|
-
|
3387
|
-
</li>
|
3388
|
-
|
3389
|
-
<li>
|
3390
|
-
|
3391
|
-
<span class='name'>wait_until</span>
|
3392
|
-
|
3393
|
-
|
3394
|
-
<span class='type'>(<tt>string|nil</tt>)</span>
|
3395
|
-
|
3396
|
-
|
3397
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3398
|
-
|
3399
|
-
|
3400
|
-
—
|
3401
|
-
<div class='inline'>
|
3402
|
-
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
3403
|
-
</div>
|
3404
|
-
|
3405
|
-
</li>
|
3406
|
-
|
3407
|
-
</ul>
|
3408
|
-
|
3409
|
-
|
3410
|
-
</div><table class="source_code">
|
3411
|
-
<tr>
|
3412
|
-
<td>
|
3413
|
-
<pre class="lines">
|
3414
|
-
|
3415
|
-
|
3416
|
-
36
|
3417
|
-
37
|
3418
|
-
38</pre>
|
3419
|
-
</td>
|
3420
|
-
<td>
|
3421
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 36</span>
|
3422
|
-
|
3423
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_navigation'>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>
|
3424
|
-
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_frame_navigation'>wait_for_frame_navigation</span><span class='lparen'>(</span><span class='kw'>self</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>
|
3425
|
-
<span class='kw'>end</span></pre>
|
3426
|
-
</td>
|
3427
|
-
</tr>
|
3428
|
-
</table>
|
3429
3587
|
</div>
|
3430
3588
|
|
3431
3589
|
<div class="method_details ">
|
@@ -3516,19 +3674,19 @@
|
|
3516
3674
|
<pre class="lines">
|
3517
3675
|
|
3518
3676
|
|
3519
|
-
|
3520
|
-
|
3521
|
-
|
3522
|
-
|
3523
|
-
|
3524
|
-
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3677
|
+
227
|
3678
|
+
228
|
3679
|
+
229
|
3680
|
+
230
|
3681
|
+
231
|
3682
|
+
232
|
3683
|
+
233
|
3684
|
+
234
|
3685
|
+
235
|
3686
|
+
236</pre>
|
3529
3687
|
</td>
|
3530
3688
|
<td>
|
3531
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3689
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 227</span>
|
3532
3690
|
|
3533
3691
|
<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>
|
3534
3692
|
<span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</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>
|
@@ -3633,19 +3791,19 @@
|
|
3633
3791
|
<pre class="lines">
|
3634
3792
|
|
3635
3793
|
|
3636
|
-
|
3637
|
-
|
3638
|
-
|
3639
|
-
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3645
|
-
|
3794
|
+
242
|
3795
|
+
243
|
3796
|
+
244
|
3797
|
+
245
|
3798
|
+
246
|
3799
|
+
247
|
3800
|
+
248
|
3801
|
+
249
|
3802
|
+
250
|
3803
|
+
251</pre>
|
3646
3804
|
</td>
|
3647
3805
|
<td>
|
3648
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3806
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 242</span>
|
3649
3807
|
|
3650
3808
|
<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>
|
3651
3809
|
<span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</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>
|
@@ -3667,7 +3825,7 @@
|
|
3667
3825
|
</div>
|
3668
3826
|
|
3669
3827
|
<div id="footer">
|
3670
|
-
Generated on
|
3828
|
+
Generated on Wed Jun 24 03:07:59 2020 by
|
3671
3829
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
3672
3830
|
0.9.24 (ruby-2.6.3).
|
3673
3831
|
</div>
|