puppeteer-ruby 0.0.5 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/docs/Puppeteer.html +53 -43
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +255 -147
- data/docs/Puppeteer/BrowserContext.html +1 -1
- data/docs/Puppeteer/BrowserFetcher.html +1 -1
- data/docs/Puppeteer/BrowserRunner.html +1 -1
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
- data/docs/Puppeteer/CDPSession.html +86 -57
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
- data/docs/Puppeteer/Connection.html +65 -61
- 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 +708 -69
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +2 -2
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +1120 -181
- 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 +1 -1
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +227 -1
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +2 -2
- data/docs/Puppeteer/FileChooser.html +455 -0
- data/docs/Puppeteer/Frame.html +492 -304
- data/docs/Puppeteer/FrameManager.html +22 -26
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +64 -23
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
- data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
- data/docs/Puppeteer/Mouse.html +31 -41
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +1 -1
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +980 -436
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
- data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
- data/docs/Puppeteer/Page/ScriptTag.html +24 -24
- data/docs/Puppeteer/Page/StyleTag.html +19 -19
- data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
- data/docs/Puppeteer/RemoteObject.html +173 -37
- data/docs/Puppeteer/Target.html +149 -197
- 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 +434 -8
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
- 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 +2 -2
- data/docs/Puppeteer/WebSocktTransportError.html +1 -1
- data/docs/_index.html +47 -19
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +5 -3
- data/docs/index.html +5 -3
- data/docs/method_list.html +788 -444
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer.rb +7 -1
- data/lib/puppeteer/browser.rb +21 -6
- data/lib/puppeteer/browser_runner.rb +1 -1
- data/lib/puppeteer/cdp_session.rb +33 -11
- data/lib/puppeteer/connection.rb +13 -1
- data/lib/puppeteer/dom_world.rb +113 -108
- data/lib/puppeteer/element_handle.rb +183 -222
- 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/execution_context.rb +36 -17
- data/lib/puppeteer/file_chooser.rb +29 -0
- data/lib/puppeteer/frame.rb +32 -12
- data/lib/puppeteer/frame_manager.rb +0 -2
- data/lib/puppeteer/launcher/chrome.rb +48 -2
- data/lib/puppeteer/mouse.rb +3 -8
- data/lib/puppeteer/page.rb +116 -65
- data/lib/puppeteer/remote_object.rb +15 -1
- data/lib/puppeteer/target.rb +24 -24
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/viewport.rb +18 -0
- data/lib/puppeteer/wait_task.rb +183 -1
- data/lib/puppeteer/web_socket.rb +3 -1
- data/lib/puppeteer/web_socket_transport.rb +1 -1
- metadata +12 -2
@@ -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
|
+
— 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> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> » <span class='title'><span class='object_link'><a href="../Page.html" title="Puppeteer::Page (class)">Page</a></span></span>
|
41
|
+
»
|
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:) ⇒ 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:) ⇒ <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
|
+
142
|
179
|
+
143
|
180
|
+
144</pre>
|
181
|
+
</td>
|
182
|
+
<td>
|
183
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 142</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'>"</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'>"</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 Sat Jun 20 17:15:06 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
|
838
|
+
Generated on Sat Jun 20 17:15:08 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
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
344
|
+
374
|
345
|
+
375
|
346
|
+
376
|
347
|
+
377
|
348
|
+
378
|
349
|
+
379</pre>
|
350
350
|
</td>
|
351
351
|
<td>
|
352
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
352
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 374</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
|
-
|
399
|
-
|
400
|
-
|
398
|
+
380
|
399
|
+
381
|
400
|
+
382</pre>
|
401
401
|
</td>
|
402
402
|
<td>
|
403
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
403
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 380</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
|
-
|
442
|
-
|
443
|
-
|
441
|
+
380
|
442
|
+
381
|
443
|
+
382</pre>
|
444
444
|
</td>
|
445
445
|
<td>
|
446
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
446
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 380</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
|
-
|
485
|
-
|
486
|
-
|
484
|
+
380
|
485
|
+
381
|
486
|
+
382</pre>
|
487
487
|
</td>
|
488
488
|
<td>
|
489
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
489
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 380</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
|
-
|
528
|
-
|
529
|
-
|
527
|
+
380
|
528
|
+
381
|
529
|
+
382</pre>
|
530
530
|
</td>
|
531
531
|
<td>
|
532
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
532
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 380</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
|
548
|
+
Generated on Sat Jun 20 17:15:06 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
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
282
|
+
391
|
283
|
+
392
|
284
|
+
393
|
285
|
+
394
|
286
|
+
395</pre>
|
287
287
|
</td>
|
288
288
|
<td>
|
289
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
289
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 391</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
|
-
|
335
|
-
|
336
|
-
|
334
|
+
396
|
335
|
+
397
|
336
|
+
398</pre>
|
337
337
|
</td>
|
338
338
|
<td>
|
339
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
339
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 396</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
|
-
|
378
|
-
|
379
|
-
|
377
|
+
396
|
378
|
+
397
|
379
|
+
398</pre>
|
380
380
|
</td>
|
381
381
|
<td>
|
382
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
382
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 396</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
|
-
|
421
|
-
|
422
|
-
|
420
|
+
396
|
421
|
+
397
|
422
|
+
398</pre>
|
423
423
|
</td>
|
424
424
|
<td>
|
425
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
425
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 396</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
|
441
|
+
Generated on Sat Jun 20 17:15:06 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
|
117
|
+
Generated on Sat Jun 20 17:15:06 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) ⇒ 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) ⇒ 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) ⇒ 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="
|
538
|
+
<h3 class="signature first" id="box_model-instance_method">
|
539
|
+
|
540
|
+
#<strong>box_model</strong>(client) ⇒ <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'>'</span><span class='tstring_content'>DOM.getBoxModel</span><span class='tstring_end'>'</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'>=></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) ⇒ <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
|
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
|
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
|
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
|
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) ⇒ <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'>'</span><span class='tstring_content'>DOM.setFileInputFiles</span><span class='tstring_end'>'</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
|
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
|
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
|
1080
|
+
Generated on Sat Jun 20 17:15:07 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>
|