puppeteer-ruby 0.0.6 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -2
  3. data/docs/Puppeteer.html +432 -104
  4. data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
  5. data/docs/Puppeteer/Browser.html +261 -153
  6. data/docs/Puppeteer/BrowserContext.html +2 -2
  7. data/docs/Puppeteer/BrowserFetcher.html +1 -1
  8. data/docs/Puppeteer/BrowserRunner.html +1 -1
  9. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
  10. data/docs/Puppeteer/CDPSession.html +2 -2
  11. data/docs/Puppeteer/CDPSession/Error.html +1 -1
  12. data/docs/Puppeteer/ConcurrentRubyUtils.html +14 -6
  13. data/docs/Puppeteer/Connection.html +66 -62
  14. data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
  15. data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
  16. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +5 -5
  17. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +12 -12
  18. data/docs/Puppeteer/ConsoleMessage.html +1 -1
  19. data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
  20. data/docs/Puppeteer/DOMWorld.html +130 -33
  21. data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
  22. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
  23. data/docs/Puppeteer/DebugPrint.html +1 -1
  24. data/docs/Puppeteer/Device.html +1 -1
  25. data/docs/Puppeteer/Devices.html +1 -1
  26. data/docs/Puppeteer/ElementHandle.html +960 -218
  27. data/docs/Puppeteer/ElementHandle/BoundingBox.html +507 -0
  28. data/docs/Puppeteer/ElementHandle/BoxModel.html +404 -0
  29. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
  30. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
  31. data/docs/Puppeteer/ElementHandle/Point.html +40 -29
  32. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
  33. data/docs/Puppeteer/EmulationManager.html +1 -1
  34. data/docs/Puppeteer/EventCallbackable.html +83 -17
  35. data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
  36. data/docs/Puppeteer/ExecutionContext.html +114 -11
  37. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
  38. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
  39. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
  40. data/docs/Puppeteer/FileChooser.html +455 -0
  41. data/docs/Puppeteer/Frame.html +425 -289
  42. data/docs/Puppeteer/FrameManager.html +23 -27
  43. data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
  44. data/docs/Puppeteer/IfPresent.html +1 -1
  45. data/docs/Puppeteer/JSHandle.html +1 -1
  46. data/docs/Puppeteer/Keyboard.html +1 -1
  47. data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
  48. data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
  49. data/docs/Puppeteer/Launcher.html +1 -1
  50. data/docs/Puppeteer/Launcher/Base.html +1 -1
  51. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
  52. data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
  53. data/docs/Puppeteer/Launcher/Chrome.html +64 -23
  54. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
  55. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
  56. data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
  57. data/docs/Puppeteer/LifecycleWatcher.html +1 -1
  58. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
  59. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
  60. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
  61. data/docs/Puppeteer/Mouse.html +31 -41
  62. data/docs/Puppeteer/Mouse/Button.html +1 -1
  63. data/docs/Puppeteer/NetworkManager.html +2 -2
  64. data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
  65. data/docs/Puppeteer/Page.html +1049 -354
  66. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  67. data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
  68. data/docs/Puppeteer/Page/ScriptTag.html +24 -24
  69. data/docs/Puppeteer/Page/StyleTag.html +19 -19
  70. data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
  71. data/docs/Puppeteer/RemoteObject.html +173 -37
  72. data/docs/Puppeteer/Target.html +150 -198
  73. data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
  74. data/docs/Puppeteer/Target/TargetInfo.html +1 -1
  75. data/docs/Puppeteer/TimeoutError.html +2 -2
  76. data/docs/Puppeteer/TimeoutSettings.html +1 -1
  77. data/docs/Puppeteer/TouchScreen.html +1 -1
  78. data/docs/Puppeteer/Viewport.html +81 -1
  79. data/docs/Puppeteer/WaitTask.html +1 -1
  80. data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
  81. data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
  82. data/docs/Puppeteer/WebSocket.html +26 -26
  83. data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
  84. data/docs/Puppeteer/WebSocket/TransportError.html +124 -0
  85. data/docs/Puppeteer/WebSocketTransport.html +9 -9
  86. data/docs/Puppeteer/WebSocktTransportError.html +1 -1
  87. data/docs/_index.html +40 -19
  88. data/docs/class_list.html +1 -1
  89. data/docs/file.README.html +7 -3
  90. data/docs/index.html +7 -3
  91. data/docs/method_list.html +785 -513
  92. data/docs/top-level-namespace.html +1 -1
  93. data/lib/puppeteer.rb +43 -13
  94. data/lib/puppeteer/browser.rb +26 -6
  95. data/lib/puppeteer/browser_runner.rb +1 -1
  96. data/lib/puppeteer/concurrent_ruby_utils.rb +6 -2
  97. data/lib/puppeteer/connection.rb +13 -1
  98. data/lib/puppeteer/dom_world.rb +16 -18
  99. data/lib/puppeteer/element_handle.rb +147 -168
  100. data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
  101. data/lib/puppeteer/element_handle/box_model.rb +19 -0
  102. data/lib/puppeteer/element_handle/point.rb +26 -0
  103. data/lib/puppeteer/errors.rb +1 -3
  104. data/lib/puppeteer/event_callbackable.rb +11 -0
  105. data/lib/puppeteer/execution_context.rb +13 -0
  106. data/lib/puppeteer/file_chooser.rb +29 -0
  107. data/lib/puppeteer/frame.rb +19 -1
  108. data/lib/puppeteer/frame_manager.rb +0 -2
  109. data/lib/puppeteer/launcher.rb +6 -6
  110. data/lib/puppeteer/launcher/chrome.rb +49 -3
  111. data/lib/puppeteer/mouse.rb +3 -8
  112. data/lib/puppeteer/page.rb +126 -54
  113. data/lib/puppeteer/remote_object.rb +15 -1
  114. data/lib/puppeteer/target.rb +25 -25
  115. data/lib/puppeteer/version.rb +1 -1
  116. data/lib/puppeteer/viewport.rb +18 -0
  117. data/lib/puppeteer/web_socket.rb +3 -1
  118. data/lib/puppeteer/web_socket_transport.rb +8 -8
  119. data/puppeteer-ruby.png +0 -0
  120. metadata +12 -4
  121. data/Dockerfile +0 -6
  122. data/docker-compose.yml +0 -15
@@ -0,0 +1,206 @@
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
+ Exception: Puppeteer::Page::FileChooserTimeoutError
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::Page::FileChooserTimeoutError";
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 (F)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Page.html" title="Puppeteer::Page (class)">Page</a></span></span>
41
+ &raquo;
42
+ <span class="title">FileChooserTimeoutError</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>Exception: Puppeteer::Page::FileChooserTimeoutError
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">StandardError</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">StandardError</li>
78
+
79
+ <li class="next">Puppeteer::Page::FileChooserTimeoutError</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/puppeteer/page.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <h2>
113
+ Instance Method Summary
114
+ <small><a href="#" class="summary_toggle">collapse</a></small>
115
+ </h2>
116
+
117
+ <ul class="summary">
118
+
119
+ <li class="public ">
120
+ <span class="summary_signature">
121
+
122
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(timeout:) &#x21d2; FileChooserTimeoutError </a>
123
+
124
+
125
+
126
+ </span>
127
+
128
+
129
+ <span class="note title constructor">constructor</span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <span class="summary_desc"><div class='inline'>
139
+ <p>A new instance of FileChooserTimeoutError.</p>
140
+ </div></span>
141
+
142
+ </li>
143
+
144
+
145
+ </ul>
146
+
147
+
148
+
149
+ <div id="constructor_details" class="method_details_list">
150
+ <h2>Constructor Details</h2>
151
+
152
+ <div class="method_details first">
153
+ <h3 class="signature first" id="initialize-instance_method">
154
+
155
+ #<strong>initialize</strong>(timeout:) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Page::FileChooserTimeoutError (class)">FileChooserTimeoutError</a></span></tt>
156
+
157
+
158
+
159
+
160
+
161
+ </h3><div class="docstring">
162
+ <div class="discussion">
163
+
164
+ <p>Returns a new instance of FileChooserTimeoutError.</p>
165
+
166
+
167
+ </div>
168
+ </div>
169
+ <div class="tags">
170
+
171
+
172
+ </div><table class="source_code">
173
+ <tr>
174
+ <td>
175
+ <pre class="lines">
176
+
177
+
178
+ 181
179
+ 182
180
+ 183</pre>
181
+ </td>
182
+ <td>
183
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 181</span>
184
+
185
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>timeout:</span><span class='rparen'>)</span>
186
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>waiting for filechooser failed: timeout </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_timeout'>timeout</span><span class='embexpr_end'>}</span><span class='tstring_content'>ms exceeded</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
187
+ <span class='kw'>end</span></pre>
188
+ </td>
189
+ </tr>
190
+ </table>
191
+ </div>
192
+
193
+ </div>
194
+
195
+
196
+ </div>
197
+
198
+ <div id="footer">
199
+ Generated on Tue Jun 23 10:24:58 2020 by
200
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
201
+ 0.9.24 (ruby-2.6.3).
202
+ </div>
203
+
204
+ </div>
205
+ </body>
206
+ </html>
@@ -835,7 +835,7 @@
835
835
  </div>
836
836
 
837
837
  <div id="footer">
838
- Generated on Mon May 25 23:22:51 2020 by
838
+ Generated on Tue Jun 23 10:25:01 2020 by
839
839
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
840
840
  0.9.24 (ruby-2.6.3).
841
841
  </div>
@@ -341,15 +341,15 @@ if (items.length)
341
341
  <pre class="lines">
342
342
 
343
343
 
344
- 346
345
- 347
346
- 348
347
- 349
348
- 350
349
- 351</pre>
344
+ 413
345
+ 414
346
+ 415
347
+ 416
348
+ 417
349
+ 418</pre>
350
350
  </td>
351
351
  <td>
352
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 346</span>
352
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 413</span>
353
353
 
354
354
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>content:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>path:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>type:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>url:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
355
355
  <span class='ivar'>@content</span> <span class='op'>=</span> <span class='id identifier rubyid_content'>content</span>
@@ -395,12 +395,12 @@ if (items.length)
395
395
  <pre class="lines">
396
396
 
397
397
 
398
- 352
399
- 353
400
- 354</pre>
398
+ 419
399
+ 420
400
+ 421</pre>
401
401
  </td>
402
402
  <td>
403
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 352</span>
403
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 419</span>
404
404
 
405
405
  <span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
406
406
  <span class='ivar'>@content</span>
@@ -438,12 +438,12 @@ if (items.length)
438
438
  <pre class="lines">
439
439
 
440
440
 
441
- 352
442
- 353
443
- 354</pre>
441
+ 419
442
+ 420
443
+ 421</pre>
444
444
  </td>
445
445
  <td>
446
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 352</span>
446
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 419</span>
447
447
 
448
448
  <span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
449
449
  <span class='ivar'>@path</span>
@@ -481,12 +481,12 @@ if (items.length)
481
481
  <pre class="lines">
482
482
 
483
483
 
484
- 352
485
- 353
486
- 354</pre>
484
+ 419
485
+ 420
486
+ 421</pre>
487
487
  </td>
488
488
  <td>
489
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 352</span>
489
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 419</span>
490
490
 
491
491
  <span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
492
492
  <span class='ivar'>@type</span>
@@ -524,12 +524,12 @@ if (items.length)
524
524
  <pre class="lines">
525
525
 
526
526
 
527
- 352
528
- 353
529
- 354</pre>
527
+ 419
528
+ 420
529
+ 421</pre>
530
530
  </td>
531
531
  <td>
532
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 352</span>
532
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 419</span>
533
533
 
534
534
  <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
535
535
  <span class='ivar'>@url</span>
@@ -545,7 +545,7 @@ if (items.length)
545
545
  </div>
546
546
 
547
547
  <div id="footer">
548
- Generated on Mon May 25 23:22:49 2020 by
548
+ Generated on Tue Jun 23 10:24:58 2020 by
549
549
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
550
550
  0.9.24 (ruby-2.6.3).
551
551
  </div>
@@ -279,14 +279,14 @@
279
279
  <pre class="lines">
280
280
 
281
281
 
282
- 363
283
- 364
284
- 365
285
- 366
286
- 367</pre>
282
+ 430
283
+ 431
284
+ 432
285
+ 433
286
+ 434</pre>
287
287
  </td>
288
288
  <td>
289
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 363</span>
289
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 430</span>
290
290
 
291
291
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>content:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>path:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>url:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
292
292
  <span class='ivar'>@content</span> <span class='op'>=</span> <span class='id identifier rubyid_content'>content</span>
@@ -331,12 +331,12 @@
331
331
  <pre class="lines">
332
332
 
333
333
 
334
- 368
335
- 369
336
- 370</pre>
334
+ 435
335
+ 436
336
+ 437</pre>
337
337
  </td>
338
338
  <td>
339
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 368</span>
339
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 435</span>
340
340
 
341
341
  <span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
342
342
  <span class='ivar'>@content</span>
@@ -374,12 +374,12 @@
374
374
  <pre class="lines">
375
375
 
376
376
 
377
- 368
378
- 369
379
- 370</pre>
377
+ 435
378
+ 436
379
+ 437</pre>
380
380
  </td>
381
381
  <td>
382
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 368</span>
382
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 435</span>
383
383
 
384
384
  <span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
385
385
  <span class='ivar'>@path</span>
@@ -417,12 +417,12 @@
417
417
  <pre class="lines">
418
418
 
419
419
 
420
- 368
421
- 369
422
- 370</pre>
420
+ 435
421
+ 436
422
+ 437</pre>
423
423
  </td>
424
424
  <td>
425
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 368</span>
425
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 435</span>
426
426
 
427
427
  <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
428
428
  <span class='ivar'>@url</span>
@@ -438,7 +438,7 @@
438
438
  </div>
439
439
 
440
440
  <div id="footer">
441
- Generated on Mon May 25 23:22:49 2020 by
441
+ Generated on Tue Jun 23 10:24:58 2020 by
442
442
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
443
443
  0.9.24 (ruby-2.6.3).
444
444
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Mon May 25 23:22:48 2020 by
117
+ Generated on Tue Jun 23 10:24:58 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>
@@ -167,6 +167,30 @@
167
167
  <li class="public ">
168
168
  <span class="summary_signature">
169
169
 
170
+ <a href="#box_model-instance_method" title="#box_model (instance method)">#<strong>box_model</strong>(client) &#x21d2; Object </a>
171
+
172
+
173
+
174
+ </span>
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+ <span class="summary_desc"><div class='inline'>
185
+ <p>used in ElementHandle#_box_model.</p>
186
+ </div></span>
187
+
188
+ </li>
189
+
190
+
191
+ <li class="public ">
192
+ <span class="summary_signature">
193
+
170
194
  <a href="#content_quads-instance_method" title="#content_quads (instance method)">#<strong>content_quads</strong>(client) &#x21d2; Object </a>
171
195
 
172
196
 
@@ -276,7 +300,7 @@
276
300
 
277
301
 
278
302
  <span class="summary_desc"><div class='inline'>
279
- <p>used in ElementHandle#content_frame.</p>
303
+ <p>used in ElementHandle#content_frame, ElementHandle#upload_file.</p>
280
304
  </div></span>
281
305
 
282
306
  </li>
@@ -325,6 +349,30 @@
325
349
 
326
350
  <span class="summary_desc"><div class='inline'></div></span>
327
351
 
352
+ </li>
353
+
354
+
355
+ <li class="public ">
356
+ <span class="summary_signature">
357
+
358
+ <a href="#set_file_input_files-instance_method" title="#set_file_input_files (instance method)">#<strong>set_file_input_files</strong>(client, files, backend_node_id) &#x21d2; Object </a>
359
+
360
+
361
+
362
+ </span>
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+ <span class="summary_desc"><div class='inline'>
373
+ <p>used in ElementHandle#upload_file.</p>
374
+ </div></span>
375
+
328
376
  </li>
329
377
 
330
378
 
@@ -487,7 +535,54 @@
487
535
 
488
536
 
489
537
  <div class="method_details first">
490
- <h3 class="signature first" id="content_quads-instance_method">
538
+ <h3 class="signature first" id="box_model-instance_method">
539
+
540
+ #<strong>box_model</strong>(client) &#x21d2; <tt>Object</tt>
541
+
542
+
543
+
544
+
545
+
546
+ </h3><div class="docstring">
547
+ <div class="discussion">
548
+
549
+ <p>used in ElementHandle#_box_model</p>
550
+
551
+
552
+ </div>
553
+ </div>
554
+ <div class="tags">
555
+
556
+
557
+ </div><table class="source_code">
558
+ <tr>
559
+ <td>
560
+ <pre class="lines">
561
+
562
+
563
+ 66
564
+ 67
565
+ 68
566
+ 69
567
+ 70
568
+ 71</pre>
569
+ </td>
570
+ <td>
571
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 66</span>
572
+
573
+ <span class='kw'>def</span> <span class='id identifier rubyid_box_model'>box_model</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='rparen'>)</span>
574
+ <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>DOM.getBoxModel</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>objectId:</span> <span class='ivar'>@object_id</span><span class='rparen'>)</span>
575
+ <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_err'>err</span>
576
+ <span class='id identifier rubyid_debug_puts'>debug_puts</span><span class='lparen'>(</span><span class='id identifier rubyid_err'>err</span><span class='rparen'>)</span>
577
+ <span class='kw'>nil</span>
578
+ <span class='kw'>end</span></pre>
579
+ </td>
580
+ </tr>
581
+ </table>
582
+ </div>
583
+
584
+ <div class="method_details ">
585
+ <h3 class="signature " id="content_quads-instance_method">
491
586
 
492
587
  #<strong>content_quads</strong>(client) &#x21d2; <tt>Object</tt>
493
588
 
@@ -542,15 +637,6 @@
542
637
  <pre class="lines">
543
638
 
544
639
 
545
- 110
546
- 111
547
- 112
548
- 113
549
- 114
550
- 115
551
- 116
552
- 117
553
- 118
554
640
  119
555
641
  120
556
642
  121
@@ -560,10 +646,19 @@
560
646
  125
561
647
  126
562
648
  127
563
- 128</pre>
649
+ 128
650
+ 129
651
+ 130
652
+ 131
653
+ 132
654
+ 133
655
+ 134
656
+ 135
657
+ 136
658
+ 137</pre>
564
659
  </td>
565
660
  <td>
566
- <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 110</span>
661
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 119</span>
567
662
 
568
663
  <span class='kw'>def</span> <span class='id identifier rubyid_converted_arg'>converted_arg</span>
569
664
  <span class='comment'># ported logic from ExecutionContext#convertArgument
@@ -701,7 +796,7 @@
701
796
  </h3><div class="docstring">
702
797
  <div class="discussion">
703
798
 
704
- <p>used in ElementHandle#content_frame</p>
799
+ <p>used in ElementHandle#content_frame, ElementHandle#upload_file</p>
705
800
 
706
801
 
707
802
  </div>
@@ -820,24 +915,24 @@
820
915
  <pre class="lines">
821
916
 
822
917
 
823
- 89
824
- 90
825
- 91
826
- 92
827
- 93
828
- 94
829
- 95
830
- 96
831
- 97
832
918
  98
833
919
  99
834
920
  100
835
921
  101
836
922
  102
837
- 103</pre>
923
+ 103
924
+ 104
925
+ 105
926
+ 106
927
+ 107
928
+ 108
929
+ 109
930
+ 110
931
+ 111
932
+ 112</pre>
838
933
  </td>
839
934
  <td>
840
- <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 89</span>
935
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 98</span>
841
936
 
842
937
  <span class='kw'>def</span> <span class='id identifier rubyid_release'>release</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='rparen'>)</span>
843
938
  <span class='kw'>return</span> <span class='kw'>unless</span> <span class='ivar'>@object_id</span>
@@ -857,6 +952,47 @@
857
952
  </td>
858
953
  </tr>
859
954
  </table>
955
+ </div>
956
+
957
+ <div class="method_details ">
958
+ <h3 class="signature " id="set_file_input_files-instance_method">
959
+
960
+ #<strong>set_file_input_files</strong>(client, files, backend_node_id) &#x21d2; <tt>Object</tt>
961
+
962
+
963
+
964
+
965
+
966
+ </h3><div class="docstring">
967
+ <div class="discussion">
968
+
969
+ <p>used in ElementHandle#upload_file</p>
970
+
971
+
972
+ </div>
973
+ </div>
974
+ <div class="tags">
975
+
976
+
977
+ </div><table class="source_code">
978
+ <tr>
979
+ <td>
980
+ <pre class="lines">
981
+
982
+
983
+ 140
984
+ 141
985
+ 142</pre>
986
+ </td>
987
+ <td>
988
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 140</span>
989
+
990
+ <span class='kw'>def</span> <span class='id identifier rubyid_set_file_input_files'>set_file_input_files</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_files'>files</span><span class='comma'>,</span> <span class='id identifier rubyid_backend_node_id'>backend_node_id</span><span class='rparen'>)</span>
991
+ <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>DOM.setFileInputFiles</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>objectId:</span> <span class='ivar'>@object_id</span><span class='comma'>,</span> <span class='label'>files:</span> <span class='id identifier rubyid_files'>files</span><span class='comma'>,</span> <span class='label'>backendNodeId:</span> <span class='id identifier rubyid_backend_node_id'>backend_node_id</span><span class='rparen'>)</span>
992
+ <span class='kw'>end</span></pre>
993
+ </td>
994
+ </tr>
995
+ </table>
860
996
  </div>
861
997
 
862
998
  <div class="method_details ">
@@ -885,15 +1021,6 @@
885
1021
  <pre class="lines">
886
1022
 
887
1023
 
888
- 66
889
- 67
890
- 68
891
- 69
892
- 70
893
- 71
894
- 72
895
- 73
896
- 74
897
1024
  75
898
1025
  76
899
1026
  77
@@ -905,10 +1032,19 @@
905
1032
  83
906
1033
  84
907
1034
  85
908
- 86</pre>
1035
+ 86
1036
+ 87
1037
+ 88
1038
+ 89
1039
+ 90
1040
+ 91
1041
+ 92
1042
+ 93
1043
+ 94
1044
+ 95</pre>
909
1045
  </td>
910
1046
  <td>
911
- <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 66</span>
1047
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/remote_object.rb', line 75</span>
912
1048
 
913
1049
  <span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
914
1050
  <span class='kw'>if</span> <span class='ivar'>@unserializable_value</span>
@@ -941,7 +1077,7 @@
941
1077
  </div>
942
1078
 
943
1079
  <div id="footer">
944
- Generated on Mon May 25 23:22:50 2020 by
1080
+ Generated on Tue Jun 23 10:25:00 2020 by
945
1081
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
946
1082
  0.9.24 (ruby-2.6.3).
947
1083
  </div>