puppeteer-ruby 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +0 -12
- data/.github/workflows/docs.yml +45 -0
- data/.github/workflows/reviewdog.yml +15 -0
- data/README.md +52 -1
- data/lib/puppeteer.rb +1 -1
- data/lib/puppeteer/browser.rb +17 -25
- data/lib/puppeteer/cdp_session.rb +3 -19
- data/lib/puppeteer/concurrent_ruby_utils.rb +6 -0
- data/lib/puppeteer/connection.rb +3 -15
- data/lib/puppeteer/define_async_method.rb +23 -0
- data/lib/puppeteer/dom_world.rb +6 -21
- data/lib/puppeteer/element_handle.rb +15 -44
- data/lib/puppeteer/emulation_manager.rb +2 -6
- data/lib/puppeteer/execution_context.rb +1 -6
- data/lib/puppeteer/frame.rb +30 -16
- data/lib/puppeteer/frame_manager.rb +7 -25
- data/lib/puppeteer/js_handle.rb +3 -12
- data/lib/puppeteer/keyboard.rb +6 -27
- data/lib/puppeteer/mouse.rb +5 -25
- data/lib/puppeteer/page.rb +39 -63
- data/lib/puppeteer/remote_object.rb +2 -5
- data/lib/puppeteer/touch_screen.rb +2 -7
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/wait_task.rb +2 -4
- data/puppeteer-ruby.gemspec +1 -1
- metadata +7 -103
- data/docs/Puppeteer.html +0 -2338
- data/docs/Puppeteer/AsyncAwaitBehavior.html +0 -105
- data/docs/Puppeteer/Browser.html +0 -2258
- data/docs/Puppeteer/BrowserContext.html +0 -809
- data/docs/Puppeteer/BrowserFetcher.html +0 -214
- data/docs/Puppeteer/BrowserRunner.html +0 -914
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +0 -477
- data/docs/Puppeteer/CDPSession.html +0 -813
- data/docs/Puppeteer/CDPSession/Error.html +0 -124
- data/docs/Puppeteer/ConcurrentRubyUtils.html +0 -438
- data/docs/Puppeteer/Connection.html +0 -964
- data/docs/Puppeteer/Connection/MessageCallback.html +0 -434
- data/docs/Puppeteer/Connection/ProtocolError.html +0 -216
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +0 -217
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +0 -244
- data/docs/Puppeteer/ConsoleMessage.html +0 -565
- data/docs/Puppeteer/ConsoleMessage/Location.html +0 -433
- data/docs/Puppeteer/DOMWorld.html +0 -2293
- data/docs/Puppeteer/DOMWorld/DetachedError.html +0 -124
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +0 -124
- data/docs/Puppeteer/DebugPrint.html +0 -233
- data/docs/Puppeteer/Device.html +0 -470
- data/docs/Puppeteer/Devices.html +0 -139
- data/docs/Puppeteer/ElementHandle.html +0 -2542
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +0 -507
- data/docs/Puppeteer/ElementHandle/BoxModel.html +0 -404
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +0 -206
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +0 -206
- data/docs/Puppeteer/ElementHandle/Point.html +0 -492
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +0 -124
- data/docs/Puppeteer/EmulationManager.html +0 -454
- data/docs/Puppeteer/EventCallbackable.html +0 -499
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +0 -435
- data/docs/Puppeteer/ExecutionContext.html +0 -998
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +0 -124
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +0 -357
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +0 -389
- data/docs/Puppeteer/FileChooser.html +0 -455
- data/docs/Puppeteer/Frame.html +0 -3835
- data/docs/Puppeteer/FrameManager.html +0 -2410
- data/docs/Puppeteer/FrameManager/NavigationError.html +0 -124
- data/docs/Puppeteer/IfPresent.html +0 -222
- data/docs/Puppeteer/JSHandle.html +0 -1352
- data/docs/Puppeteer/Keyboard.html +0 -1557
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +0 -831
- data/docs/Puppeteer/Keyboard/KeyDescription.html +0 -603
- data/docs/Puppeteer/Launcher.html +0 -237
- data/docs/Puppeteer/Launcher/Base.html +0 -385
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +0 -124
- data/docs/Puppeteer/Launcher/BrowserOptions.html +0 -441
- data/docs/Puppeteer/Launcher/Chrome.html +0 -674
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +0 -382
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +0 -531
- data/docs/Puppeteer/Launcher/LaunchOptions.html +0 -893
- data/docs/Puppeteer/LifecycleWatcher.html +0 -834
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +0 -363
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +0 -206
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +0 -124
- data/docs/Puppeteer/Mouse.html +0 -1095
- data/docs/Puppeteer/Mouse/Button.html +0 -136
- data/docs/Puppeteer/NetworkManager.html +0 -901
- data/docs/Puppeteer/NetworkManager/Credentials.html +0 -385
- data/docs/Puppeteer/Page.html +0 -6173
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +0 -206
- data/docs/Puppeteer/Page/ScreenshotOptions.html +0 -845
- data/docs/Puppeteer/Page/ScriptTag.html +0 -555
- data/docs/Puppeteer/Page/StyleTag.html +0 -448
- data/docs/Puppeteer/Page/TargetCrashedError.html +0 -124
- data/docs/Puppeteer/RemoteObject.html +0 -1087
- data/docs/Puppeteer/Target.html +0 -1336
- data/docs/Puppeteer/Target/InitializeFailure.html +0 -124
- data/docs/Puppeteer/Target/TargetInfo.html +0 -729
- data/docs/Puppeteer/TimeoutError.html +0 -135
- data/docs/Puppeteer/TimeoutSettings.html +0 -496
- data/docs/Puppeteer/TouchScreen.html +0 -464
- data/docs/Puppeteer/Viewport.html +0 -837
- data/docs/Puppeteer/WaitTask.html +0 -637
- data/docs/Puppeteer/WaitTask/TerminatedError.html +0 -124
- data/docs/Puppeteer/WaitTask/TimeoutError.html +0 -206
- data/docs/Puppeteer/WebSocket.html +0 -673
- data/docs/Puppeteer/WebSocket/DriverImpl.html +0 -412
- data/docs/Puppeteer/WebSocket/TransportError.html +0 -124
- data/docs/Puppeteer/WebSocketTransport.html +0 -600
- data/docs/Puppeteer/WebSocktTransportError.html +0 -124
- data/docs/_index.html +0 -816
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -496
- data/docs/file.README.html +0 -125
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -125
- data/docs/js/app.js +0 -314
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -4123
- data/docs/top-level-namespace.html +0 -126
- data/lib/puppeteer/async_await_behavior.rb +0 -38
|
@@ -1,404 +0,0 @@
|
|
|
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::ElementHandle::BoxModel
|
|
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::ElementHandle::BoxModel";
|
|
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 (B)</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="../ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span></span>
|
|
41
|
-
»
|
|
42
|
-
<span class="title">BoxModel</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::ElementHandle::BoxModel
|
|
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::ElementHandle::BoxModel</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/element_handle/box_model.rb</dd>
|
|
98
|
-
</dl>
|
|
99
|
-
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<h2>
|
|
105
|
-
Constant Summary
|
|
106
|
-
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
|
107
|
-
</h2>
|
|
108
|
-
|
|
109
|
-
<dl class="constants">
|
|
110
|
-
|
|
111
|
-
<dt id="QUAD_ATTRIBUTE_NAMES-constant" class="">QUAD_ATTRIBUTE_NAMES =
|
|
112
|
-
|
|
113
|
-
</dt>
|
|
114
|
-
<dd><pre class="code"><span class='qsymbols_beg'>%i(</span><span class='tstring_content'>content</span><span class='words_sep'> </span><span class='tstring_content'>padding</span><span class='words_sep'> </span><span class='tstring_content'>border</span><span class='words_sep'> </span><span class='tstring_content'>margin</span><span class='tstring_end'>)</span></span></pre></dd>
|
|
115
|
-
|
|
116
|
-
</dl>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
123
|
-
<ul class="summary">
|
|
124
|
-
|
|
125
|
-
<li class="public ">
|
|
126
|
-
<span class="summary_signature">
|
|
127
|
-
|
|
128
|
-
<a href="#height-instance_method" title="#height (instance method)">#<strong>height</strong> ⇒ Object </a>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</span>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<span class="note title readonly">readonly</span>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<span class="summary_desc"><div class='inline'>
|
|
148
|
-
<p>Returns the value of attribute height.</p>
|
|
149
|
-
</div></span>
|
|
150
|
-
|
|
151
|
-
</li>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<li class="public ">
|
|
155
|
-
<span class="summary_signature">
|
|
156
|
-
|
|
157
|
-
<a href="#width-instance_method" title="#width (instance method)">#<strong>width</strong> ⇒ Object </a>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
</span>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
<span class="note title readonly">readonly</span>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
<span class="summary_desc"><div class='inline'>
|
|
177
|
-
<p>Returns the value of attribute width.</p>
|
|
178
|
-
</div></span>
|
|
179
|
-
|
|
180
|
-
</li>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
</ul>
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<h2>
|
|
190
|
-
Instance Method Summary
|
|
191
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
192
|
-
</h2>
|
|
193
|
-
|
|
194
|
-
<ul class="summary">
|
|
195
|
-
|
|
196
|
-
<li class="public ">
|
|
197
|
-
<span class="summary_signature">
|
|
198
|
-
|
|
199
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(result_model) ⇒ BoxModel </a>
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
</span>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
<span class="note title constructor">constructor</span>
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<span class="summary_desc"><div class='inline'>
|
|
216
|
-
<p>A new instance of BoxModel.</p>
|
|
217
|
-
</div></span>
|
|
218
|
-
|
|
219
|
-
</li>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
</ul>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<div id="constructor_details" class="method_details_list">
|
|
226
|
-
<h2>Constructor Details</h2>
|
|
227
|
-
|
|
228
|
-
<div class="method_details first">
|
|
229
|
-
<h3 class="signature first" id="initialize-instance_method">
|
|
230
|
-
|
|
231
|
-
#<strong>initialize</strong>(result_model) ⇒ <tt><span class='object_link'><a href="" title="Puppeteer::ElementHandle::BoxModel (class)">BoxModel</a></span></tt>
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
</h3><div class="docstring">
|
|
238
|
-
<div class="discussion">
|
|
239
|
-
|
|
240
|
-
<p>Returns a new instance of BoxModel.</p>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
</div>
|
|
244
|
-
</div>
|
|
245
|
-
<div class="tags">
|
|
246
|
-
<p class="tag_title">Parameters:</p>
|
|
247
|
-
<ul class="param">
|
|
248
|
-
|
|
249
|
-
<li>
|
|
250
|
-
|
|
251
|
-
<span class='name'>result</span>
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
</li>
|
|
259
|
-
|
|
260
|
-
</ul>
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
</div><table class="source_code">
|
|
264
|
-
<tr>
|
|
265
|
-
<td>
|
|
266
|
-
<pre class="lines">
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
5
|
|
270
|
-
6
|
|
271
|
-
7
|
|
272
|
-
8
|
|
273
|
-
9
|
|
274
|
-
10
|
|
275
|
-
11
|
|
276
|
-
12
|
|
277
|
-
13
|
|
278
|
-
14
|
|
279
|
-
15</pre>
|
|
280
|
-
</td>
|
|
281
|
-
<td>
|
|
282
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/box_model.rb', line 5</span>
|
|
283
|
-
|
|
284
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_result_model'>result_model</span><span class='rparen'>)</span>
|
|
285
|
-
<span class='const'><span class='object_link'><a href="#QUAD_ATTRIBUTE_NAMES-constant" title="Puppeteer::ElementHandle::BoxModel::QUAD_ATTRIBUTE_NAMES (constant)">QUAD_ATTRIBUTE_NAMES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attr_name'>attr_name</span><span class='op'>|</span>
|
|
286
|
-
<span class='id identifier rubyid_quad'>quad</span> <span class='op'>=</span> <span class='id identifier rubyid_result_model'>result_model</span><span class='lbracket'>[</span><span class='id identifier rubyid_attr_name'>attr_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbracket'>]</span>
|
|
287
|
-
<span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span>
|
|
288
|
-
<span class='symbol'>:"@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attr_name'>attr_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
|
289
|
-
<span class='id identifier rubyid_quad'>quad</span><span class='period'>.</span><span class='id identifier rubyid_each_slice'>each_slice</span><span class='lparen'>(</span><span class='int'>2</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='op'>|</span> <span class='const'><span class='object_link'><a href="Point.html" title="Puppeteer::ElementHandle::Point (class)">Point</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Point.html#initialize-instance_method" title="Puppeteer::ElementHandle::Point#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>x:</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='label'>y:</span> <span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
|
290
|
-
<span class='rparen'>)</span>
|
|
291
|
-
<span class='kw'>end</span>
|
|
292
|
-
<span class='ivar'>@width</span> <span class='op'>=</span> <span class='id identifier rubyid_result_model'>result_model</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>width</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
293
|
-
<span class='ivar'>@height</span> <span class='op'>=</span> <span class='id identifier rubyid_result_model'>result_model</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>height</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
294
|
-
<span class='kw'>end</span></pre>
|
|
295
|
-
</td>
|
|
296
|
-
</tr>
|
|
297
|
-
</table>
|
|
298
|
-
</div>
|
|
299
|
-
|
|
300
|
-
</div>
|
|
301
|
-
|
|
302
|
-
<div id="instance_attr_details" class="attr_details">
|
|
303
|
-
<h2>Instance Attribute Details</h2>
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
<span id=""></span>
|
|
307
|
-
<div class="method_details first">
|
|
308
|
-
<h3 class="signature first" id="height-instance_method">
|
|
309
|
-
|
|
310
|
-
#<strong>height</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
</h3><div class="docstring">
|
|
317
|
-
<div class="discussion">
|
|
318
|
-
|
|
319
|
-
<p>Returns the value of attribute height.</p>
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
</div>
|
|
323
|
-
</div>
|
|
324
|
-
<div class="tags">
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
</div><table class="source_code">
|
|
328
|
-
<tr>
|
|
329
|
-
<td>
|
|
330
|
-
<pre class="lines">
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
17
|
|
334
|
-
18
|
|
335
|
-
19</pre>
|
|
336
|
-
</td>
|
|
337
|
-
<td>
|
|
338
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/box_model.rb', line 17</span>
|
|
339
|
-
|
|
340
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_height'>height</span>
|
|
341
|
-
<span class='ivar'>@height</span>
|
|
342
|
-
<span class='kw'>end</span></pre>
|
|
343
|
-
</td>
|
|
344
|
-
</tr>
|
|
345
|
-
</table>
|
|
346
|
-
</div>
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
<span id=""></span>
|
|
350
|
-
<div class="method_details ">
|
|
351
|
-
<h3 class="signature " id="width-instance_method">
|
|
352
|
-
|
|
353
|
-
#<strong>width</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
</h3><div class="docstring">
|
|
360
|
-
<div class="discussion">
|
|
361
|
-
|
|
362
|
-
<p>Returns the value of attribute width.</p>
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
</div>
|
|
366
|
-
</div>
|
|
367
|
-
<div class="tags">
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
</div><table class="source_code">
|
|
371
|
-
<tr>
|
|
372
|
-
<td>
|
|
373
|
-
<pre class="lines">
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
17
|
|
377
|
-
18
|
|
378
|
-
19</pre>
|
|
379
|
-
</td>
|
|
380
|
-
<td>
|
|
381
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle/box_model.rb', line 17</span>
|
|
382
|
-
|
|
383
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_width'>width</span>
|
|
384
|
-
<span class='ivar'>@width</span>
|
|
385
|
-
<span class='kw'>end</span></pre>
|
|
386
|
-
</td>
|
|
387
|
-
</tr>
|
|
388
|
-
</table>
|
|
389
|
-
</div>
|
|
390
|
-
|
|
391
|
-
</div>
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
</div>
|
|
395
|
-
|
|
396
|
-
<div id="footer">
|
|
397
|
-
Generated on Wed Jun 24 03:08:01 2020 by
|
|
398
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
399
|
-
0.9.24 (ruby-2.6.3).
|
|
400
|
-
</div>
|
|
401
|
-
|
|
402
|
-
</div>
|
|
403
|
-
</body>
|
|
404
|
-
</html>
|
|
@@ -1,206 +0,0 @@
|
|
|
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::ElementHandle::ElementNotFoundError
|
|
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::ElementHandle::ElementNotFoundError";
|
|
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 (E)</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="../ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span></span>
|
|
41
|
-
»
|
|
42
|
-
<span class="title">ElementNotFoundError</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::ElementHandle::ElementNotFoundError
|
|
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::ElementHandle::ElementNotFoundError</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/element_handle.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>(selector) ⇒ ElementNotFoundError </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 ElementNotFoundError.</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>(selector) ⇒ <tt><span class='object_link'><a href="" title="Puppeteer::ElementHandle::ElementNotFoundError (class)">ElementNotFoundError</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 ElementNotFoundError.</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
|
-
339
|
|
179
|
-
340
|
|
180
|
-
341</pre>
|
|
181
|
-
</td>
|
|
182
|
-
<td>
|
|
183
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 339</span>
|
|
184
|
-
|
|
185
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</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'>failed to find element matching selector \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_selector'>selector</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"</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 Wed Jun 24 03:08:01 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>
|