puppeteer-ruby 0.0.4 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +30 -0
  3. data/.rubocop.yml +4 -5
  4. data/README.md +3 -2
  5. data/docs/Puppeteer.html +2020 -0
  6. data/docs/Puppeteer/AsyncAwaitBehavior.html +105 -0
  7. data/docs/Puppeteer/Browser.html +2148 -0
  8. data/docs/Puppeteer/BrowserContext.html +809 -0
  9. data/docs/Puppeteer/BrowserFetcher.html +214 -0
  10. data/docs/Puppeteer/BrowserRunner.html +914 -0
  11. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +477 -0
  12. data/docs/Puppeteer/CDPSession.html +813 -0
  13. data/docs/Puppeteer/CDPSession/Error.html +124 -0
  14. data/docs/Puppeteer/ConcurrentRubyUtils.html +430 -0
  15. data/docs/Puppeteer/Connection.html +960 -0
  16. data/docs/Puppeteer/Connection/MessageCallback.html +434 -0
  17. data/docs/Puppeteer/Connection/ProtocolError.html +216 -0
  18. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +217 -0
  19. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +244 -0
  20. data/docs/Puppeteer/ConsoleMessage.html +565 -0
  21. data/docs/Puppeteer/ConsoleMessage/Location.html +433 -0
  22. data/docs/Puppeteer/DOMWorld.html +2219 -0
  23. data/docs/Puppeteer/DOMWorld/DetachedError.html +124 -0
  24. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +124 -0
  25. data/docs/Puppeteer/DebugPrint.html +233 -0
  26. data/docs/Puppeteer/Device.html +470 -0
  27. data/docs/Puppeteer/Devices.html +139 -0
  28. data/docs/Puppeteer/ElementHandle.html +2542 -0
  29. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +206 -0
  30. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +206 -0
  31. data/docs/Puppeteer/ElementHandle/Point.html +492 -0
  32. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +124 -0
  33. data/docs/Puppeteer/EmulationManager.html +454 -0
  34. data/docs/Puppeteer/EventCallbackable.html +433 -0
  35. data/docs/Puppeteer/EventCallbackable/EventListeners.html +435 -0
  36. data/docs/Puppeteer/ExecutionContext.html +998 -0
  37. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +124 -0
  38. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +357 -0
  39. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +389 -0
  40. data/docs/Puppeteer/FileChooser.html +455 -0
  41. data/docs/Puppeteer/Frame.html +3677 -0
  42. data/docs/Puppeteer/FrameManager.html +2410 -0
  43. data/docs/Puppeteer/FrameManager/NavigationError.html +124 -0
  44. data/docs/Puppeteer/IfPresent.html +222 -0
  45. data/docs/Puppeteer/JSHandle.html +1352 -0
  46. data/docs/Puppeteer/Keyboard.html +1557 -0
  47. data/docs/Puppeteer/Keyboard/KeyDefinition.html +831 -0
  48. data/docs/Puppeteer/Keyboard/KeyDescription.html +603 -0
  49. data/docs/Puppeteer/Launcher.html +237 -0
  50. data/docs/Puppeteer/Launcher/Base.html +385 -0
  51. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +124 -0
  52. data/docs/Puppeteer/Launcher/BrowserOptions.html +441 -0
  53. data/docs/Puppeteer/Launcher/Chrome.html +669 -0
  54. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +382 -0
  55. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +531 -0
  56. data/docs/Puppeteer/Launcher/LaunchOptions.html +893 -0
  57. data/docs/Puppeteer/LifecycleWatcher.html +834 -0
  58. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +363 -0
  59. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +206 -0
  60. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +124 -0
  61. data/docs/Puppeteer/Mouse.html +1105 -0
  62. data/docs/Puppeteer/Mouse/Button.html +136 -0
  63. data/docs/Puppeteer/NetworkManager.html +901 -0
  64. data/docs/Puppeteer/NetworkManager/Credentials.html +385 -0
  65. data/docs/Puppeteer/Page.html +5970 -0
  66. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  67. data/docs/Puppeteer/Page/ScreenshotOptions.html +845 -0
  68. data/docs/Puppeteer/Page/ScriptTag.html +555 -0
  69. data/docs/Puppeteer/Page/StyleTag.html +448 -0
  70. data/docs/Puppeteer/Page/TargetCrashedError.html +124 -0
  71. data/docs/Puppeteer/RemoteObject.html +1087 -0
  72. data/docs/Puppeteer/Target.html +1336 -0
  73. data/docs/Puppeteer/Target/InitializeFailure.html +124 -0
  74. data/docs/Puppeteer/Target/TargetInfo.html +729 -0
  75. data/docs/Puppeteer/TimeoutError.html +135 -0
  76. data/docs/Puppeteer/TimeoutSettings.html +496 -0
  77. data/docs/Puppeteer/TouchScreen.html +464 -0
  78. data/docs/Puppeteer/Viewport.html +837 -0
  79. data/docs/Puppeteer/WaitTask.html +637 -0
  80. data/docs/Puppeteer/WaitTask/TerminatedError.html +124 -0
  81. data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
  82. data/docs/Puppeteer/WebSocket.html +673 -0
  83. data/docs/Puppeteer/WebSocket/DriverImpl.html +412 -0
  84. data/docs/Puppeteer/WebSocketTransport.html +600 -0
  85. data/docs/Puppeteer/WebSocktTransportError.html +124 -0
  86. data/docs/_index.html +823 -0
  87. data/docs/class_list.html +51 -0
  88. data/docs/css/common.css +1 -0
  89. data/docs/css/full_list.css +58 -0
  90. data/docs/css/style.css +496 -0
  91. data/docs/file.README.html +123 -0
  92. data/docs/file_list.html +56 -0
  93. data/docs/frames.html +17 -0
  94. data/docs/index.html +123 -0
  95. data/docs/js/app.js +314 -0
  96. data/docs/js/full_list.js +216 -0
  97. data/docs/js/jquery.js +4 -0
  98. data/docs/method_list.html +4075 -0
  99. data/docs/top-level-namespace.html +126 -0
  100. data/lib/puppeteer.rb +16 -8
  101. data/lib/puppeteer/async_await_behavior.rb +6 -0
  102. data/lib/puppeteer/browser.rb +25 -6
  103. data/lib/puppeteer/browser_runner.rb +1 -1
  104. data/lib/puppeteer/cdp_session.rb +33 -11
  105. data/lib/puppeteer/connection.rb +1 -1
  106. data/lib/puppeteer/dom_world.rb +121 -104
  107. data/lib/puppeteer/element_handle.rb +186 -224
  108. data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
  109. data/lib/puppeteer/element_handle/box_model.rb +19 -0
  110. data/lib/puppeteer/element_handle/point.rb +26 -0
  111. data/lib/puppeteer/errors.rb +1 -3
  112. data/lib/puppeteer/execution_context.rb +36 -17
  113. data/lib/puppeteer/file_chooser.rb +29 -0
  114. data/lib/puppeteer/frame.rb +17 -11
  115. data/lib/puppeteer/frame_manager.rb +1 -3
  116. data/lib/puppeteer/js_handle.rb +3 -2
  117. data/lib/puppeteer/launcher.rb +0 -1
  118. data/lib/puppeteer/launcher/chrome.rb +48 -2
  119. data/lib/puppeteer/lifecycle_watcher.rb +3 -3
  120. data/lib/puppeteer/page.rb +121 -68
  121. data/lib/puppeteer/remote_object.rb +15 -1
  122. data/lib/puppeteer/target.rb +24 -24
  123. data/lib/puppeteer/version.rb +1 -1
  124. data/lib/puppeteer/viewport.rb +18 -0
  125. data/lib/puppeteer/wait_task.rb +183 -1
  126. data/lib/puppeteer/web_socket.rb +3 -1
  127. data/lib/puppeteer/web_socket_transport.rb +1 -1
  128. data/puppeteer-ruby.gemspec +4 -1
  129. metadata +145 -4
@@ -0,0 +1,1336 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Puppeteer::Target
8
+
9
+ &mdash; Documentation by YARD 0.9.24
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Puppeteer::Target";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (T)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span>
41
+ &raquo;
42
+ <span class="title">Target</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Puppeteer::Target
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Puppeteer::Target</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/puppeteer/target.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p><a href="https://github.com/puppeteer/puppeteer/blob/master/lib/Target.js">github.com/puppeteer/puppeteer/blob/master/lib/Target.js</a></p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div><h2>Defined Under Namespace</h2>
114
+ <p class="children">
115
+
116
+
117
+
118
+
119
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Target/InitializeFailure.html" title="Puppeteer::Target::InitializeFailure (class)">InitializeFailure</a></span>, <span class='object_link'><a href="Target/TargetInfo.html" title="Puppeteer::Target::TargetInfo (class)">TargetInfo</a></span>
120
+
121
+
122
+ </p>
123
+
124
+
125
+
126
+
127
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
128
+ <ul class="summary">
129
+
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#initialized_promise-instance_method" title="#initialized_promise (instance method)">#<strong>initialized_promise</strong> &#x21d2; Object </a>
134
+
135
+
136
+
137
+ </span>
138
+
139
+
140
+
141
+
142
+ <span class="note title readonly">readonly</span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ <span class="summary_desc"><div class='inline'>
153
+ <p>Returns the value of attribute initialized_promise.</p>
154
+ </div></span>
155
+
156
+ </li>
157
+
158
+
159
+ <li class="public ">
160
+ <span class="summary_signature">
161
+
162
+ <a href="#is_closed_promise-instance_method" title="#is_closed_promise (instance method)">#<strong>is_closed_promise</strong> &#x21d2; Object </a>
163
+
164
+
165
+
166
+ </span>
167
+
168
+
169
+
170
+
171
+ <span class="note title readonly">readonly</span>
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+ <span class="summary_desc"><div class='inline'>
182
+ <p>Returns the value of attribute is_closed_promise.</p>
183
+ </div></span>
184
+
185
+ </li>
186
+
187
+
188
+ <li class="public ">
189
+ <span class="summary_signature">
190
+
191
+ <a href="#target_id-instance_method" title="#target_id (instance method)">#<strong>target_id</strong> &#x21d2; Object </a>
192
+
193
+
194
+
195
+ </span>
196
+
197
+
198
+
199
+
200
+ <span class="note title readonly">readonly</span>
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+ <span class="summary_desc"><div class='inline'>
211
+ <p>Returns the value of attribute target_id.</p>
212
+ </div></span>
213
+
214
+ </li>
215
+
216
+
217
+ </ul>
218
+
219
+
220
+
221
+
222
+
223
+ <h2>
224
+ Instance Method Summary
225
+ <small><a href="#" class="summary_toggle">collapse</a></small>
226
+ </h2>
227
+
228
+ <ul class="summary">
229
+
230
+ <li class="public ">
231
+ <span class="summary_signature">
232
+
233
+ <a href="#browser-instance_method" title="#browser (instance method)">#<strong>browser</strong> &#x21d2; !Puppeteer.Browser </a>
234
+
235
+
236
+
237
+ </span>
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+ <span class="summary_desc"><div class='inline'></div></span>
248
+
249
+ </li>
250
+
251
+
252
+ <li class="public ">
253
+ <span class="summary_signature">
254
+
255
+ <a href="#browser_context-instance_method" title="#browser_context (instance method)">#<strong>browser_context</strong> &#x21d2; !Puppeteer.BrowserContext </a>
256
+
257
+
258
+
259
+ </span>
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+ <span class="summary_desc"><div class='inline'></div></span>
270
+
271
+ </li>
272
+
273
+
274
+ <li class="public ">
275
+ <span class="summary_signature">
276
+
277
+ <a href="#closed_callback-instance_method" title="#closed_callback (instance method)">#<strong>closed_callback</strong> &#x21d2; Object </a>
278
+
279
+
280
+
281
+ </span>
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+ <span class="summary_desc"><div class='inline'></div></span>
292
+
293
+ </li>
294
+
295
+
296
+ <li class="public ">
297
+ <span class="summary_signature">
298
+
299
+ <a href="#create_cdp_session-instance_method" title="#create_cdp_session (instance method)">#<strong>create_cdp_session</strong> &#x21d2; Object </a>
300
+
301
+
302
+
303
+ </span>
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+ <span class="summary_desc"><div class='inline'></div></span>
314
+
315
+ </li>
316
+
317
+
318
+ <li class="public ">
319
+ <span class="summary_signature">
320
+
321
+ <a href="#handle_target_info_changed-instance_method" title="#handle_target_info_changed (instance method)">#<strong>handle_target_info_changed</strong>(target_info) &#x21d2; Object </a>
322
+
323
+
324
+
325
+ </span>
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+ <span class="summary_desc"><div class='inline'></div></span>
336
+
337
+ </li>
338
+
339
+
340
+ <li class="public ">
341
+ <span class="summary_signature">
342
+
343
+ <a href="#ignore_initialize_callback_promise-instance_method" title="#ignore_initialize_callback_promise (instance method)">#<strong>ignore_initialize_callback_promise</strong> &#x21d2; Object </a>
344
+
345
+
346
+
347
+ </span>
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+ <span class="summary_desc"><div class='inline'></div></span>
358
+
359
+ </li>
360
+
361
+
362
+ <li class="public ">
363
+ <span class="summary_signature">
364
+
365
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(target_info:, browser_context:, session_factory:, ignore_https_errors:, default_viewport:, screenshot_task_queue:) &#x21d2; Target </a>
366
+
367
+
368
+
369
+ </span>
370
+
371
+
372
+ <span class="note title constructor">constructor</span>
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+ <span class="summary_desc"><div class='inline'>
382
+ <p>A new instance of Target.</p>
383
+ </div></span>
384
+
385
+ </li>
386
+
387
+
388
+ <li class="public ">
389
+ <span class="summary_signature">
390
+
391
+ <a href="#initialized%3F-instance_method" title="#initialized? (instance method)">#<strong>initialized?</strong> &#x21d2; Boolean </a>
392
+
393
+
394
+
395
+ </span>
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+ <span class="summary_desc"><div class='inline'></div></span>
406
+
407
+ </li>
408
+
409
+
410
+ <li class="public ">
411
+ <span class="summary_signature">
412
+
413
+ <a href="#opener-instance_method" title="#opener (instance method)">#<strong>opener</strong> &#x21d2; ?Puppeteer.Target </a>
414
+
415
+
416
+
417
+ </span>
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+ <span class="summary_desc"><div class='inline'></div></span>
428
+
429
+ </li>
430
+
431
+
432
+ <li class="public ">
433
+ <span class="summary_signature">
434
+
435
+ <a href="#page-instance_method" title="#page (instance method)">#<strong>page</strong> &#x21d2; Object </a>
436
+
437
+
438
+
439
+ </span>
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+ <span class="summary_desc"><div class='inline'></div></span>
450
+
451
+ </li>
452
+
453
+
454
+ <li class="public ">
455
+ <span class="summary_signature">
456
+
457
+ <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> &#x21d2; &quot;page&quot;|&quot;background_page&quot;|&quot;service_worker&quot;|&quot;shared_worker&quot;|&quot;other&quot;|&quot;browser&quot; </a>
458
+
459
+
460
+
461
+ </span>
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+ <span class="summary_desc"><div class='inline'></div></span>
472
+
473
+ </li>
474
+
475
+
476
+ <li class="public ">
477
+ <span class="summary_signature">
478
+
479
+ <a href="#url-instance_method" title="#url (instance method)">#<strong>url</strong> &#x21d2; string </a>
480
+
481
+
482
+
483
+ </span>
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+ <span class="summary_desc"><div class='inline'></div></span>
494
+
495
+ </li>
496
+
497
+
498
+ </ul>
499
+
500
+
501
+ <div id="constructor_details" class="method_details_list">
502
+ <h2>Constructor Details</h2>
503
+
504
+ <div class="method_details first">
505
+ <h3 class="signature first" id="initialize-instance_method">
506
+
507
+ #<strong>initialize</strong>(target_info:, browser_context:, session_factory:, ignore_https_errors:, default_viewport:, screenshot_task_queue:) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Target (class)">Target</a></span></tt>
508
+
509
+
510
+
511
+
512
+
513
+ </h3><div class="docstring">
514
+ <div class="discussion">
515
+
516
+ <p>Returns a new instance of Target.</p>
517
+
518
+
519
+ </div>
520
+ </div>
521
+ <div class="tags">
522
+ <p class="tag_title">Parameters:</p>
523
+ <ul class="param">
524
+
525
+ <li>
526
+
527
+ <span class='name'>targetInfo</span>
528
+
529
+
530
+ <span class='type'>(<tt>!Protocol.<span class='object_link'><a href="" title="Puppeteer::Target (class)">Target</a></span>.<span class='object_link'><a href="Target/TargetInfo.html" title="Puppeteer::Target::TargetInfo (class)">TargetInfo</a></span></tt>)</span>
531
+
532
+
533
+
534
+ </li>
535
+
536
+ <li>
537
+
538
+ <span class='name'>browserContext</span>
539
+
540
+
541
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="BrowserContext.html" title="Puppeteer::BrowserContext (class)">BrowserContext</a></span></tt>)</span>
542
+
543
+
544
+
545
+ </li>
546
+
547
+ <li>
548
+
549
+ <span class='name'>sessionFactory</span>
550
+
551
+
552
+ <span class='type'>(<tt>!function():!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="CDPSession.html" title="Puppeteer::CDPSession (class)">CDPSession</a></span>&gt;</tt>)</span>
553
+
554
+
555
+
556
+ </li>
557
+
558
+ <li>
559
+
560
+ <span class='name'>ignoreHTTPSErrors</span>
561
+
562
+
563
+ <span class='type'>(<tt>boolean</tt>)</span>
564
+
565
+
566
+
567
+ </li>
568
+
569
+ <li>
570
+
571
+ <span class='name'>defaultViewport</span>
572
+
573
+
574
+ <span class='type'>(<tt>?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="Viewport.html" title="Puppeteer::Viewport (class)">Viewport</a></span></tt>)</span>
575
+
576
+
577
+
578
+ </li>
579
+
580
+ <li>
581
+
582
+ <span class='name'>screenshotTaskQueue</span>
583
+
584
+
585
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.TaskQueue</tt>)</span>
586
+
587
+
588
+
589
+ </li>
590
+
591
+ </ul>
592
+
593
+
594
+ </div><table class="source_code">
595
+ <tr>
596
+ <td>
597
+ <pre class="lines">
598
+
599
+
600
+ 22
601
+ 23
602
+ 24
603
+ 25
604
+ 26
605
+ 27
606
+ 28
607
+ 29
608
+ 30
609
+ 31
610
+ 32
611
+ 33
612
+ 34
613
+ 35
614
+ 36
615
+ 37
616
+ 38
617
+ 39
618
+ 40
619
+ 41
620
+ 42
621
+ 43
622
+ 44
623
+ 45
624
+ 46
625
+ 47</pre>
626
+ </td>
627
+ <td>
628
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 22</span>
629
+
630
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>target_info:</span><span class='comma'>,</span> <span class='label'>browser_context:</span><span class='comma'>,</span> <span class='label'>session_factory:</span><span class='comma'>,</span> <span class='label'>ignore_https_errors:</span><span class='comma'>,</span> <span class='label'>default_viewport:</span><span class='comma'>,</span> <span class='label'>screenshot_task_queue:</span><span class='rparen'>)</span>
631
+ <span class='ivar'>@target_info</span> <span class='op'>=</span> <span class='id identifier rubyid_target_info'>target_info</span>
632
+ <span class='ivar'>@browser_context</span> <span class='op'>=</span> <span class='id identifier rubyid_browser_context'>browser_context</span>
633
+ <span class='ivar'>@target_id</span> <span class='op'>=</span> <span class='id identifier rubyid_target_info'>target_info</span><span class='period'>.</span><span class='id identifier rubyid_target_id'>target_id</span>
634
+ <span class='ivar'>@session_factory</span> <span class='op'>=</span> <span class='id identifier rubyid_session_factory'>session_factory</span>
635
+ <span class='ivar'>@ignore_https_errors</span> <span class='op'>=</span> <span class='id identifier rubyid_ignore_https_errors'>ignore_https_errors</span>
636
+ <span class='ivar'>@default_viewport</span> <span class='op'>=</span> <span class='id identifier rubyid_default_viewport'>default_viewport</span>
637
+ <span class='ivar'>@screenshot_task_queue</span> <span class='op'>=</span> <span class='id identifier rubyid_screenshot_task_queue'>screenshot_task_queue</span>
638
+
639
+
640
+ <span class='comment'># /** @type {?Promise&lt;!Puppeteer.Page&gt;} */
641
+ </span> <span class='comment'># this._pagePromise = null;
642
+ </span> <span class='comment'># /** @type {?Promise&lt;!Worker&gt;} */
643
+ </span> <span class='comment'># this._workerPromise = null;
644
+ </span> <span class='ivar'>@initialize_callback_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>
645
+ <span class='ivar'>@initialized_promise</span> <span class='op'>=</span> <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_then'>then</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_success'>success</span><span class='op'>|</span>
646
+ <span class='id identifier rubyid_handle_initialized'>handle_initialized</span><span class='lparen'>(</span><span class='id identifier rubyid_success'>success</span><span class='rparen'>)</span>
647
+ <span class='kw'>end</span>
648
+ <span class='ivar'>@is_closed_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>
649
+
650
+ <span class='ivar'>@is_initialized</span> <span class='op'>=</span> <span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span> <span class='op'>||</span> <span class='op'>!</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
651
+
652
+ <span class='kw'>if</span> <span class='ivar'>@is_initialized</span>
653
+ <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
654
+ <span class='kw'>end</span>
655
+ <span class='kw'>end</span></pre>
656
+ </td>
657
+ </tr>
658
+ </table>
659
+ </div>
660
+
661
+ </div>
662
+
663
+ <div id="instance_attr_details" class="attr_details">
664
+ <h2>Instance Attribute Details</h2>
665
+
666
+
667
+ <span id=""></span>
668
+ <div class="method_details first">
669
+ <h3 class="signature first" id="initialized_promise-instance_method">
670
+
671
+ #<strong>initialized_promise</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
672
+
673
+
674
+
675
+
676
+
677
+ </h3><div class="docstring">
678
+ <div class="discussion">
679
+
680
+ <p>Returns the value of attribute initialized_promise.</p>
681
+
682
+
683
+ </div>
684
+ </div>
685
+ <div class="tags">
686
+
687
+
688
+ </div><table class="source_code">
689
+ <tr>
690
+ <td>
691
+ <pre class="lines">
692
+
693
+
694
+ 49
695
+ 50
696
+ 51</pre>
697
+ </td>
698
+ <td>
699
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
700
+
701
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialized_promise'>initialized_promise</span>
702
+ <span class='ivar'>@initialized_promise</span>
703
+ <span class='kw'>end</span></pre>
704
+ </td>
705
+ </tr>
706
+ </table>
707
+ </div>
708
+
709
+
710
+ <span id=""></span>
711
+ <div class="method_details ">
712
+ <h3 class="signature " id="is_closed_promise-instance_method">
713
+
714
+ #<strong>is_closed_promise</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
715
+
716
+
717
+
718
+
719
+
720
+ </h3><div class="docstring">
721
+ <div class="discussion">
722
+
723
+ <p>Returns the value of attribute is_closed_promise.</p>
724
+
725
+
726
+ </div>
727
+ </div>
728
+ <div class="tags">
729
+
730
+
731
+ </div><table class="source_code">
732
+ <tr>
733
+ <td>
734
+ <pre class="lines">
735
+
736
+
737
+ 49
738
+ 50
739
+ 51</pre>
740
+ </td>
741
+ <td>
742
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
743
+
744
+ <span class='kw'>def</span> <span class='id identifier rubyid_is_closed_promise'>is_closed_promise</span>
745
+ <span class='ivar'>@is_closed_promise</span>
746
+ <span class='kw'>end</span></pre>
747
+ </td>
748
+ </tr>
749
+ </table>
750
+ </div>
751
+
752
+
753
+ <span id=""></span>
754
+ <div class="method_details ">
755
+ <h3 class="signature " id="target_id-instance_method">
756
+
757
+ #<strong>target_id</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
758
+
759
+
760
+
761
+
762
+
763
+ </h3><div class="docstring">
764
+ <div class="discussion">
765
+
766
+ <p>Returns the value of attribute target_id.</p>
767
+
768
+
769
+ </div>
770
+ </div>
771
+ <div class="tags">
772
+
773
+
774
+ </div><table class="source_code">
775
+ <tr>
776
+ <td>
777
+ <pre class="lines">
778
+
779
+
780
+ 49
781
+ 50
782
+ 51</pre>
783
+ </td>
784
+ <td>
785
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
786
+
787
+ <span class='kw'>def</span> <span class='id identifier rubyid_target_id'>target_id</span>
788
+ <span class='ivar'>@target_id</span>
789
+ <span class='kw'>end</span></pre>
790
+ </td>
791
+ </tr>
792
+ </table>
793
+ </div>
794
+
795
+ </div>
796
+
797
+
798
+ <div id="instance_method_details" class="method_details_list">
799
+ <h2>Instance Method Details</h2>
800
+
801
+
802
+ <div class="method_details first">
803
+ <h3 class="signature first" id="browser-instance_method">
804
+
805
+ #<strong>browser</strong> &#x21d2; <tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="Browser.html" title="Puppeteer::Browser (class)">Browser</a></span></tt>
806
+
807
+
808
+
809
+
810
+
811
+ </h3><div class="docstring">
812
+ <div class="discussion">
813
+
814
+
815
+ </div>
816
+ </div>
817
+ <div class="tags">
818
+
819
+ <p class="tag_title">Returns:</p>
820
+ <ul class="return">
821
+
822
+ <li>
823
+
824
+
825
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="Browser.html" title="Puppeteer::Browser (class)">Browser</a></span></tt>)</span>
826
+
827
+
828
+
829
+ </li>
830
+
831
+ </ul>
832
+
833
+ </div><table class="source_code">
834
+ <tr>
835
+ <td>
836
+ <pre class="lines">
837
+
838
+
839
+ 125
840
+ 126
841
+ 127</pre>
842
+ </td>
843
+ <td>
844
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 125</span>
845
+
846
+ <span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
847
+ <span class='ivar'>@browser_context</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
848
+ <span class='kw'>end</span></pre>
849
+ </td>
850
+ </tr>
851
+ </table>
852
+ </div>
853
+
854
+ <div class="method_details ">
855
+ <h3 class="signature " id="browser_context-instance_method">
856
+
857
+ #<strong>browser_context</strong> &#x21d2; <tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="BrowserContext.html" title="Puppeteer::BrowserContext (class)">BrowserContext</a></span></tt>
858
+
859
+
860
+
861
+
862
+
863
+ </h3><div class="docstring">
864
+ <div class="discussion">
865
+
866
+
867
+ </div>
868
+ </div>
869
+ <div class="tags">
870
+
871
+ <p class="tag_title">Returns:</p>
872
+ <ul class="return">
873
+
874
+ <li>
875
+
876
+
877
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="BrowserContext.html" title="Puppeteer::BrowserContext (class)">BrowserContext</a></span></tt>)</span>
878
+
879
+
880
+
881
+ </li>
882
+
883
+ </ul>
884
+
885
+ </div><table class="source_code">
886
+ <tr>
887
+ <td>
888
+ <pre class="lines">
889
+
890
+
891
+ 130
892
+ 131
893
+ 132</pre>
894
+ </td>
895
+ <td>
896
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 130</span>
897
+
898
+ <span class='kw'>def</span> <span class='id identifier rubyid_browser_context'>browser_context</span>
899
+ <span class='ivar'>@browser_context</span>
900
+ <span class='kw'>end</span></pre>
901
+ </td>
902
+ </tr>
903
+ </table>
904
+ </div>
905
+
906
+ <div class="method_details ">
907
+ <h3 class="signature " id="closed_callback-instance_method">
908
+
909
+ #<strong>closed_callback</strong> &#x21d2; <tt>Object</tt>
910
+
911
+
912
+
913
+
914
+
915
+ </h3><table class="source_code">
916
+ <tr>
917
+ <td>
918
+ <pre class="lines">
919
+
920
+
921
+ 51
922
+ 52
923
+ 53</pre>
924
+ </td>
925
+ <td>
926
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 51</span>
927
+
928
+ <span class='kw'>def</span> <span class='id identifier rubyid_closed_callback'>closed_callback</span>
929
+ <span class='ivar'>@is_closed_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
930
+ <span class='kw'>end</span></pre>
931
+ </td>
932
+ </tr>
933
+ </table>
934
+ </div>
935
+
936
+ <div class="method_details ">
937
+ <h3 class="signature " id="create_cdp_session-instance_method">
938
+
939
+ #<strong>create_cdp_session</strong> &#x21d2; <tt>Object</tt>
940
+
941
+
942
+
943
+
944
+
945
+ </h3><table class="source_code">
946
+ <tr>
947
+ <td>
948
+ <pre class="lines">
949
+
950
+
951
+ 83
952
+ 84
953
+ 85</pre>
954
+ </td>
955
+ <td>
956
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 83</span>
957
+
958
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_cdp_session'>create_cdp_session</span>
959
+ <span class='ivar'>@session_factory</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
960
+ <span class='kw'>end</span></pre>
961
+ </td>
962
+ </tr>
963
+ </table>
964
+ </div>
965
+
966
+ <div class="method_details ">
967
+ <h3 class="signature " id="handle_target_info_changed-instance_method">
968
+
969
+ #<strong>handle_target_info_changed</strong>(target_info) &#x21d2; <tt>Object</tt>
970
+
971
+
972
+
973
+
974
+
975
+ </h3><div class="docstring">
976
+ <div class="discussion">
977
+
978
+
979
+ </div>
980
+ </div>
981
+ <div class="tags">
982
+ <p class="tag_title">Parameters:</p>
983
+ <ul class="param">
984
+
985
+ <li>
986
+
987
+ <span class='name'>targetInfo</span>
988
+
989
+
990
+ <span class='type'>(<tt>!Protocol.<span class='object_link'><a href="" title="Puppeteer::Target (class)">Target</a></span>.<span class='object_link'><a href="Target/TargetInfo.html" title="Puppeteer::Target::TargetInfo (class)">TargetInfo</a></span></tt>)</span>
991
+
992
+
993
+
994
+ </li>
995
+
996
+ </ul>
997
+
998
+
999
+ </div><table class="source_code">
1000
+ <tr>
1001
+ <td>
1002
+ <pre class="lines">
1003
+
1004
+
1005
+ 142
1006
+ 143
1007
+ 144
1008
+ 145
1009
+ 146
1010
+ 147
1011
+ 148
1012
+ 149</pre>
1013
+ </td>
1014
+ <td>
1015
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 142</span>
1016
+
1017
+ <span class='kw'>def</span> <span class='id identifier rubyid_handle_target_info_changed'>handle_target_info_changed</span><span class='lparen'>(</span><span class='id identifier rubyid_target_info'>target_info</span><span class='rparen'>)</span>
1018
+ <span class='ivar'>@target_info</span> <span class='op'>=</span> <span class='id identifier rubyid_target_info'>target_info</span>
1019
+
1020
+ <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@is_initialized</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span> <span class='op'>||</span> <span class='op'>!</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='rparen'>)</span>
1021
+ <span class='ivar'>@is_initialized</span> <span class='op'>=</span> <span class='kw'>true</span>
1022
+ <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
1023
+ <span class='kw'>end</span>
1024
+ <span class='kw'>end</span></pre>
1025
+ </td>
1026
+ </tr>
1027
+ </table>
1028
+ </div>
1029
+
1030
+ <div class="method_details ">
1031
+ <h3 class="signature " id="ignore_initialize_callback_promise-instance_method">
1032
+
1033
+ #<strong>ignore_initialize_callback_promise</strong> &#x21d2; <tt>Object</tt>
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+ </h3><table class="source_code">
1040
+ <tr>
1041
+ <td>
1042
+ <pre class="lines">
1043
+
1044
+
1045
+ 57
1046
+ 58
1047
+ 59
1048
+ 60
1049
+ 61</pre>
1050
+ </td>
1051
+ <td>
1052
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 57</span>
1053
+
1054
+ <span class='kw'>def</span> <span class='id identifier rubyid_ignore_initialize_callback_promise'>ignore_initialize_callback_promise</span>
1055
+ <span class='kw'>unless</span> <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfilled?'>fulfilled?</span>
1056
+ <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span>
1057
+ <span class='kw'>end</span>
1058
+ <span class='kw'>end</span></pre>
1059
+ </td>
1060
+ </tr>
1061
+ </table>
1062
+ </div>
1063
+
1064
+ <div class="method_details ">
1065
+ <h3 class="signature " id="initialized?-instance_method">
1066
+
1067
+ #<strong>initialized?</strong> &#x21d2; <tt>Boolean</tt>
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+ </h3><div class="docstring">
1074
+ <div class="discussion">
1075
+
1076
+
1077
+ </div>
1078
+ </div>
1079
+ <div class="tags">
1080
+
1081
+ <p class="tag_title">Returns:</p>
1082
+ <ul class="return">
1083
+
1084
+ <li>
1085
+
1086
+
1087
+ <span class='type'>(<tt>Boolean</tt>)</span>
1088
+
1089
+
1090
+
1091
+ </li>
1092
+
1093
+ </ul>
1094
+
1095
+ </div><table class="source_code">
1096
+ <tr>
1097
+ <td>
1098
+ <pre class="lines">
1099
+
1100
+
1101
+ 79
1102
+ 80
1103
+ 81</pre>
1104
+ </td>
1105
+ <td>
1106
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 79</span>
1107
+
1108
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialized?'>initialized?</span>
1109
+ <span class='ivar'>@is_initialized</span>
1110
+ <span class='kw'>end</span></pre>
1111
+ </td>
1112
+ </tr>
1113
+ </table>
1114
+ </div>
1115
+
1116
+ <div class="method_details ">
1117
+ <h3 class="signature " id="opener-instance_method">
1118
+
1119
+ #<strong>opener</strong> &#x21d2; <tt>?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="" title="Puppeteer::Target (class)">Target</a></span></tt>
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+ </h3><div class="docstring">
1126
+ <div class="discussion">
1127
+
1128
+
1129
+ </div>
1130
+ </div>
1131
+ <div class="tags">
1132
+
1133
+ <p class="tag_title">Returns:</p>
1134
+ <ul class="return">
1135
+
1136
+ <li>
1137
+
1138
+
1139
+ <span class='type'>(<tt>?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="" title="Puppeteer::Target (class)">Target</a></span></tt>)</span>
1140
+
1141
+
1142
+
1143
+ </li>
1144
+
1145
+ </ul>
1146
+
1147
+ </div><table class="source_code">
1148
+ <tr>
1149
+ <td>
1150
+ <pre class="lines">
1151
+
1152
+
1153
+ 135
1154
+ 136
1155
+ 137
1156
+ 138
1157
+ 139</pre>
1158
+ </td>
1159
+ <td>
1160
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 135</span>
1161
+
1162
+ <span class='kw'>def</span> <span class='id identifier rubyid_opener'>opener</span>
1163
+ <span class='id identifier rubyid_opener_id'>opener_id</span> <span class='op'>=</span> <span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_opener_id'>opener_id</span>
1164
+ <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_opener_id'>opener_id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1165
+ <span class='id identifier rubyid_browser'>browser</span><span class='period'>.</span><span class='id identifier rubyid_targets'>targets</span><span class='lbracket'>[</span><span class='id identifier rubyid_opener_id'>opener_id</span><span class='rbracket'>]</span>
1166
+ <span class='kw'>end</span></pre>
1167
+ </td>
1168
+ </tr>
1169
+ </table>
1170
+ </div>
1171
+
1172
+ <div class="method_details ">
1173
+ <h3 class="signature " id="page-instance_method">
1174
+
1175
+ #<strong>page</strong> &#x21d2; <tt>Object</tt>
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+ </h3><table class="source_code">
1182
+ <tr>
1183
+ <td>
1184
+ <pre class="lines">
1185
+
1186
+
1187
+ 87
1188
+ 88
1189
+ 89
1190
+ 90
1191
+ 91
1192
+ 92
1193
+ 93</pre>
1194
+ </td>
1195
+ <td>
1196
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 87</span>
1197
+
1198
+ <span class='kw'>def</span> <span class='id identifier rubyid_page'>page</span>
1199
+ <span class='kw'>if</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>background_page</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>webview</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@page</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1200
+ <span class='id identifier rubyid_client'>client</span> <span class='op'>=</span> <span class='ivar'>@session_factory</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
1201
+ <span class='ivar'>@page</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="Page.html" title="Puppeteer::Page (class)">Page</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create'><span class='object_link'><a href="Page.html#create-class_method" title="Puppeteer::Page.create (method)">create</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='ivar'>@ignore_https_errors</span><span class='comma'>,</span> <span class='ivar'>@default_viewport</span><span class='comma'>,</span> <span class='ivar'>@screenshot_task_queue</span><span class='rparen'>)</span>
1202
+ <span class='kw'>end</span>
1203
+ <span class='ivar'>@page</span>
1204
+ <span class='kw'>end</span></pre>
1205
+ </td>
1206
+ </tr>
1207
+ </table>
1208
+ </div>
1209
+
1210
+ <div class="method_details ">
1211
+ <h3 class="signature " id="type-instance_method">
1212
+
1213
+ #<strong>type</strong> &#x21d2; <tt>"<span class='object_link'><a href="#page-instance_method" title="Puppeteer::Target#page (method)">page</a></span>"|"background_page"|"service_worker"|"shared_worker"|"other"|"<span class='object_link'><a href="#browser-instance_method" title="Puppeteer::Target#browser (method)">browser</a></span>"</tt>
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+ </h3><div class="docstring">
1220
+ <div class="discussion">
1221
+
1222
+
1223
+ </div>
1224
+ </div>
1225
+ <div class="tags">
1226
+
1227
+ <p class="tag_title">Returns:</p>
1228
+ <ul class="return">
1229
+
1230
+ <li>
1231
+
1232
+
1233
+ <span class='type'>(<tt>"<span class='object_link'><a href="#page-instance_method" title="Puppeteer::Target#page (method)">page</a></span>"|"background_page"|"service_worker"|"shared_worker"|"other"|"<span class='object_link'><a href="#browser-instance_method" title="Puppeteer::Target#browser (method)">browser</a></span>"</tt>)</span>
1234
+
1235
+
1236
+
1237
+ </li>
1238
+
1239
+ </ul>
1240
+
1241
+ </div><table class="source_code">
1242
+ <tr>
1243
+ <td>
1244
+ <pre class="lines">
1245
+
1246
+
1247
+ 115
1248
+ 116
1249
+ 117
1250
+ 118
1251
+ 119
1252
+ 120
1253
+ 121
1254
+ 122</pre>
1255
+ </td>
1256
+ <td>
1257
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 115</span>
1258
+
1259
+ <span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
1260
+ <span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span>
1261
+ <span class='kw'>if</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>background_page</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>service_worker</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>shared_worker</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>browser</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
1262
+ <span class='id identifier rubyid_type'>type</span>
1263
+ <span class='kw'>else</span>
1264
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>other</span><span class='tstring_end'>&#39;</span></span>
1265
+ <span class='kw'>end</span>
1266
+ <span class='kw'>end</span></pre>
1267
+ </td>
1268
+ </tr>
1269
+ </table>
1270
+ </div>
1271
+
1272
+ <div class="method_details ">
1273
+ <h3 class="signature " id="url-instance_method">
1274
+
1275
+ #<strong>url</strong> &#x21d2; <tt>string</tt>
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+ </h3><div class="docstring">
1282
+ <div class="discussion">
1283
+
1284
+
1285
+ </div>
1286
+ </div>
1287
+ <div class="tags">
1288
+
1289
+ <p class="tag_title">Returns:</p>
1290
+ <ul class="return">
1291
+
1292
+ <li>
1293
+
1294
+
1295
+ <span class='type'>(<tt>string</tt>)</span>
1296
+
1297
+
1298
+
1299
+ </li>
1300
+
1301
+ </ul>
1302
+
1303
+ </div><table class="source_code">
1304
+ <tr>
1305
+ <td>
1306
+ <pre class="lines">
1307
+
1308
+
1309
+ 110
1310
+ 111
1311
+ 112</pre>
1312
+ </td>
1313
+ <td>
1314
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 110</span>
1315
+
1316
+ <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
1317
+ <span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
1318
+ <span class='kw'>end</span></pre>
1319
+ </td>
1320
+ </tr>
1321
+ </table>
1322
+ </div>
1323
+
1324
+ </div>
1325
+
1326
+ </div>
1327
+
1328
+ <div id="footer">
1329
+ Generated on Fri Jun 12 12:38:33 2020 by
1330
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1331
+ 0.9.24 (ruby-2.6.3).
1332
+ </div>
1333
+
1334
+ </div>
1335
+ </body>
1336
+ </html>