puppeteer-ruby 0.0.3 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +30 -0
  3. data/.github/stale.yml +16 -0
  4. data/.rubocop.yml +4 -5
  5. data/README.md +4 -1
  6. data/docs/Puppeteer.html +2020 -0
  7. data/docs/Puppeteer/AsyncAwaitBehavior.html +105 -0
  8. data/docs/Puppeteer/Browser.html +2148 -0
  9. data/docs/Puppeteer/BrowserContext.html +809 -0
  10. data/docs/Puppeteer/BrowserFetcher.html +214 -0
  11. data/docs/Puppeteer/BrowserRunner.html +914 -0
  12. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +477 -0
  13. data/docs/Puppeteer/CDPSession.html +813 -0
  14. data/docs/Puppeteer/CDPSession/Error.html +124 -0
  15. data/docs/Puppeteer/ConcurrentRubyUtils.html +430 -0
  16. data/docs/Puppeteer/Connection.html +960 -0
  17. data/docs/Puppeteer/Connection/MessageCallback.html +434 -0
  18. data/docs/Puppeteer/Connection/ProtocolError.html +216 -0
  19. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +217 -0
  20. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +244 -0
  21. data/docs/Puppeteer/ConsoleMessage.html +565 -0
  22. data/docs/Puppeteer/ConsoleMessage/Location.html +433 -0
  23. data/docs/Puppeteer/DOMWorld.html +2219 -0
  24. data/docs/Puppeteer/DOMWorld/DetachedError.html +124 -0
  25. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +124 -0
  26. data/docs/Puppeteer/DebugPrint.html +233 -0
  27. data/docs/Puppeteer/Device.html +470 -0
  28. data/docs/Puppeteer/Devices.html +139 -0
  29. data/docs/Puppeteer/ElementHandle.html +2224 -0
  30. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +206 -0
  31. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +206 -0
  32. data/docs/Puppeteer/ElementHandle/Point.html +481 -0
  33. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +124 -0
  34. data/docs/Puppeteer/EmulationManager.html +454 -0
  35. data/docs/Puppeteer/EventCallbackable.html +433 -0
  36. data/docs/Puppeteer/EventCallbackable/EventListeners.html +435 -0
  37. data/docs/Puppeteer/ExecutionContext.html +998 -0
  38. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +124 -0
  39. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +357 -0
  40. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +389 -0
  41. data/docs/Puppeteer/FileChooser.html +455 -0
  42. data/docs/Puppeteer/Frame.html +3677 -0
  43. data/docs/Puppeteer/FrameManager.html +2410 -0
  44. data/docs/Puppeteer/FrameManager/NavigationError.html +124 -0
  45. data/docs/Puppeteer/IfPresent.html +222 -0
  46. data/docs/Puppeteer/JSHandle.html +1352 -0
  47. data/docs/Puppeteer/Keyboard.html +1557 -0
  48. data/docs/Puppeteer/Keyboard/KeyDefinition.html +831 -0
  49. data/docs/Puppeteer/Keyboard/KeyDescription.html +603 -0
  50. data/docs/Puppeteer/Launcher.html +237 -0
  51. data/docs/Puppeteer/Launcher/Base.html +385 -0
  52. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +124 -0
  53. data/docs/Puppeteer/Launcher/BrowserOptions.html +441 -0
  54. data/docs/Puppeteer/Launcher/Chrome.html +669 -0
  55. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +382 -0
  56. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +531 -0
  57. data/docs/Puppeteer/Launcher/LaunchOptions.html +893 -0
  58. data/docs/Puppeteer/LifecycleWatcher.html +834 -0
  59. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +363 -0
  60. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +206 -0
  61. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +124 -0
  62. data/docs/Puppeteer/Mouse.html +1105 -0
  63. data/docs/Puppeteer/Mouse/Button.html +136 -0
  64. data/docs/Puppeteer/NetworkManager.html +901 -0
  65. data/docs/Puppeteer/NetworkManager/Credentials.html +385 -0
  66. data/docs/Puppeteer/Page.html +5970 -0
  67. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  68. data/docs/Puppeteer/Page/ScreenshotOptions.html +845 -0
  69. data/docs/Puppeteer/Page/ScriptTag.html +555 -0
  70. data/docs/Puppeteer/Page/StyleTag.html +448 -0
  71. data/docs/Puppeteer/Page/TargetCrashedError.html +124 -0
  72. data/docs/Puppeteer/RemoteObject.html +1016 -0
  73. data/docs/Puppeteer/Target.html +1314 -0
  74. data/docs/Puppeteer/Target/InitializeFailure.html +124 -0
  75. data/docs/Puppeteer/Target/TargetInfo.html +729 -0
  76. data/docs/Puppeteer/TimeoutError.html +135 -0
  77. data/docs/Puppeteer/TimeoutSettings.html +496 -0
  78. data/docs/Puppeteer/TouchScreen.html +464 -0
  79. data/docs/Puppeteer/Viewport.html +757 -0
  80. data/docs/Puppeteer/WaitTask.html +637 -0
  81. data/docs/Puppeteer/WaitTask/TerminatedError.html +124 -0
  82. data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
  83. data/docs/Puppeteer/WebSocket.html +673 -0
  84. data/docs/Puppeteer/WebSocket/DriverImpl.html +412 -0
  85. data/docs/Puppeteer/WebSocketTransport.html +600 -0
  86. data/docs/Puppeteer/WebSocktTransportError.html +124 -0
  87. data/docs/_index.html +809 -0
  88. data/docs/class_list.html +51 -0
  89. data/docs/css/common.css +1 -0
  90. data/docs/css/full_list.css +58 -0
  91. data/docs/css/style.css +496 -0
  92. data/docs/file.README.html +123 -0
  93. data/docs/file_list.html +56 -0
  94. data/docs/frames.html +17 -0
  95. data/docs/index.html +123 -0
  96. data/docs/js/app.js +314 -0
  97. data/docs/js/full_list.js +216 -0
  98. data/docs/js/jquery.js +4 -0
  99. data/docs/method_list.html +3971 -0
  100. data/docs/top-level-namespace.html +126 -0
  101. data/lib/puppeteer.rb +16 -8
  102. data/lib/puppeteer/async_await_behavior.rb +6 -0
  103. data/lib/puppeteer/browser.rb +24 -5
  104. data/lib/puppeteer/browser_runner.rb +1 -1
  105. data/lib/puppeteer/cdp_session.rb +33 -11
  106. data/lib/puppeteer/connection.rb +1 -1
  107. data/lib/puppeteer/dom_world.rb +142 -121
  108. data/lib/puppeteer/element_handle.rb +223 -181
  109. data/lib/puppeteer/execution_context.rb +41 -17
  110. data/lib/puppeteer/file_chooser.rb +29 -0
  111. data/lib/puppeteer/frame.rb +23 -15
  112. data/lib/puppeteer/frame_manager.rb +7 -9
  113. data/lib/puppeteer/js_handle.rb +3 -3
  114. data/lib/puppeteer/keyboard.rb +1 -1
  115. data/lib/puppeteer/keyboard/us_keyboard_layout.rb +4 -4
  116. data/lib/puppeteer/launcher.rb +0 -1
  117. data/lib/puppeteer/launcher/chrome.rb +48 -2
  118. data/lib/puppeteer/lifecycle_watcher.rb +9 -4
  119. data/lib/puppeteer/mouse.rb +10 -7
  120. data/lib/puppeteer/page.rb +134 -70
  121. data/lib/puppeteer/remote_object.rb +11 -1
  122. data/lib/puppeteer/target.rb +16 -13
  123. data/lib/puppeteer/version.rb +1 -1
  124. data/lib/puppeteer/wait_task.rb +183 -1
  125. data/puppeteer-ruby.gemspec +4 -1
  126. metadata +143 -4
@@ -0,0 +1,382 @@
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::Launcher::Chrome::DefaultArgs
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::Launcher::Chrome::DefaultArgs";
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 (D)</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="../../Launcher.html" title="Puppeteer::Launcher (module)">Launcher</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Chrome.html" title="Puppeteer::Launcher::Chrome (class)">Chrome</a></span></span>
41
+ &raquo;
42
+ <span class="title">DefaultArgs</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::Launcher::Chrome::DefaultArgs
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::Launcher::Chrome::DefaultArgs</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <dl>
91
+ <dt>Includes:</dt>
92
+ <dd>Enumerable</dd>
93
+ </dl>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dl>
101
+ <dt>Defined in:</dt>
102
+ <dd>lib/puppeteer/launcher/chrome.rb</dd>
103
+ </dl>
104
+
105
+ </div>
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <h2>
116
+ Instance Method Summary
117
+ <small><a href="#" class="summary_toggle">collapse</a></small>
118
+ </h2>
119
+
120
+ <ul class="summary">
121
+
122
+ <li class="public ">
123
+ <span class="summary_signature">
124
+
125
+ <a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong>(&amp;block) &#x21d2; Object </a>
126
+
127
+
128
+
129
+ </span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+ <span class="summary_desc"><div class='inline'></div></span>
140
+
141
+ </li>
142
+
143
+
144
+ <li class="public ">
145
+ <span class="summary_signature">
146
+
147
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(chrome_arg_options) &#x21d2; DefaultArgs </a>
148
+
149
+
150
+
151
+ </span>
152
+
153
+
154
+ <span class="note title constructor">constructor</span>
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'>
164
+ <p>A new instance of DefaultArgs.</p>
165
+ </div></span>
166
+
167
+ </li>
168
+
169
+
170
+ </ul>
171
+
172
+
173
+
174
+ <div id="constructor_details" class="method_details_list">
175
+ <h2>Constructor Details</h2>
176
+
177
+ <div class="method_details first">
178
+ <h3 class="signature first" id="initialize-instance_method">
179
+
180
+ #<strong>initialize</strong>(chrome_arg_options) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Launcher::Chrome::DefaultArgs (class)">DefaultArgs</a></span></tt>
181
+
182
+
183
+
184
+
185
+
186
+ </h3><div class="docstring">
187
+ <div class="discussion">
188
+
189
+ <p>Returns a new instance of DefaultArgs.</p>
190
+
191
+
192
+ </div>
193
+ </div>
194
+ <div class="tags">
195
+ <p class="tag_title">Parameters:</p>
196
+ <ul class="param">
197
+
198
+ <li>
199
+
200
+ <span class='name'>options</span>
201
+
202
+
203
+ <span class='type'>(<tt><span class='object_link'><a href="../ChromeArgOptions.html" title="Puppeteer::Launcher::ChromeArgOptions (class)">Launcher::ChromeArgOptions</a></span></tt>)</span>
204
+
205
+
206
+
207
+ </li>
208
+
209
+ </ul>
210
+
211
+
212
+ </div><table class="source_code">
213
+ <tr>
214
+ <td>
215
+ <pre class="lines">
216
+
217
+
218
+ 83
219
+ 84
220
+ 85
221
+ 86
222
+ 87
223
+ 88
224
+ 89
225
+ 90
226
+ 91
227
+ 92
228
+ 93
229
+ 94
230
+ 95
231
+ 96
232
+ 97
233
+ 98
234
+ 99
235
+ 100
236
+ 101
237
+ 102
238
+ 103
239
+ 104
240
+ 105
241
+ 106
242
+ 107
243
+ 108
244
+ 109
245
+ 110
246
+ 111
247
+ 112
248
+ 113
249
+ 114
250
+ 115
251
+ 116
252
+ 117
253
+ 118
254
+ 119
255
+ 120
256
+ 121
257
+ 122
258
+ 123
259
+ 124
260
+ 125
261
+ 126
262
+ 127
263
+ 128
264
+ 129
265
+ 130
266
+ 131
267
+ 132
268
+ 133</pre>
269
+ </td>
270
+ <td>
271
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome.rb', line 83</span>
272
+
273
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='rparen'>)</span>
274
+ <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>=</span> <span class='lbracket'>[</span>
275
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-background-networking</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
276
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--enable-features=NetworkService,NetworkServiceInProcess</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
277
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-background-timer-throttling</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
278
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-backgrounding-occluded-windows</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
279
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-breakpad</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
280
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-client-side-phishing-detection</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
281
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-component-extensions-with-background-pages</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
282
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-default-apps</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
283
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-dev-shm-usage</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
284
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-extensions</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
285
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-features=TranslateUI</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
286
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-hang-monitor</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
287
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-ipc-flooding-protection</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
288
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-popup-blocking</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
289
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-prompt-on-repost</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
290
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-renderer-backgrounding</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
291
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-sync</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
292
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--force-color-profile=srgb</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
293
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--metrics-recording-only</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
294
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--no-first-run</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
295
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--enable-automation</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
296
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--password-store=basic</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
297
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--use-mock-keychain</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
298
+ <span class='rbracket'>]</span>
299
+
300
+ <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_user_data_dir'>user_data_dir</span>
301
+ <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--user-data-dir=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_user_data_dir'>user_data_dir</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
302
+ <span class='kw'>end</span>
303
+
304
+ <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_devtools?'>devtools?</span>
305
+ <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--auto-open-devtools-for-tabs</span><span class='tstring_end'>&#39;</span></span>
306
+ <span class='kw'>end</span>
307
+
308
+ <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_headless?'>headless?</span>
309
+ <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='lbracket'>[</span>
310
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--headless</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
311
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--hide-scrollbars</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
312
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--mute-audio</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
313
+ <span class='rbracket'>]</span><span class='rparen'>)</span>
314
+ <span class='kw'>end</span>
315
+
316
+ <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='id identifier rubyid_arg'>arg</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
317
+ <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>about:blank</span><span class='tstring_end'>&#39;</span></span>
318
+ <span class='kw'>end</span>
319
+
320
+ <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
321
+
322
+ <span class='ivar'>@chrome_arguments</span> <span class='op'>=</span> <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span>
323
+ <span class='kw'>end</span></pre>
324
+ </td>
325
+ </tr>
326
+ </table>
327
+ </div>
328
+
329
+ </div>
330
+
331
+
332
+ <div id="instance_method_details" class="method_details_list">
333
+ <h2>Instance Method Details</h2>
334
+
335
+
336
+ <div class="method_details first">
337
+ <h3 class="signature first" id="each-instance_method">
338
+
339
+ #<strong>each</strong>(&amp;block) &#x21d2; <tt>Object</tt>
340
+
341
+
342
+
343
+
344
+
345
+ </h3><table class="source_code">
346
+ <tr>
347
+ <td>
348
+ <pre class="lines">
349
+
350
+
351
+ 135
352
+ 136
353
+ 137
354
+ 138
355
+ 139</pre>
356
+ </td>
357
+ <td>
358
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome.rb', line 135</span>
359
+
360
+ <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
361
+ <span class='ivar'>@chrome_arguments</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_opt'>opt</span><span class='op'>|</span>
362
+ <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_opt'>opt</span><span class='rparen'>)</span>
363
+ <span class='kw'>end</span>
364
+ <span class='kw'>end</span></pre>
365
+ </td>
366
+ </tr>
367
+ </table>
368
+ </div>
369
+
370
+ </div>
371
+
372
+ </div>
373
+
374
+ <div id="footer">
375
+ Generated on Tue Jun 9 00:13:41 2020 by
376
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
377
+ 0.9.24 (ruby-2.6.3).
378
+ </div>
379
+
380
+ </div>
381
+ </body>
382
+ </html>
@@ -0,0 +1,531 @@
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::Launcher::ChromeArgOptions
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::Launcher::ChromeArgOptions";
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 (C)</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="../Launcher.html" title="Puppeteer::Launcher (module)">Launcher</a></span></span>
41
+ &raquo;
42
+ <span class="title">ChromeArgOptions</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::Launcher::ChromeArgOptions
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::Launcher::ChromeArgOptions</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/launcher/chrome_arg_options.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+
103
+
104
+
105
+
106
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
107
+ <ul class="summary">
108
+
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#args-instance_method" title="#args (instance method)">#<strong>args</strong> &#x21d2; Object </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+ <span class="note title readonly">readonly</span>
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <span class="summary_desc"><div class='inline'>
132
+ <p>Returns the value of attribute args.</p>
133
+ </div></span>
134
+
135
+ </li>
136
+
137
+
138
+ <li class="public ">
139
+ <span class="summary_signature">
140
+
141
+ <a href="#user_data_dir-instance_method" title="#user_data_dir (instance method)">#<strong>user_data_dir</strong> &#x21d2; Object </a>
142
+
143
+
144
+
145
+ </span>
146
+
147
+
148
+
149
+
150
+ <span class="note title readonly">readonly</span>
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ <span class="summary_desc"><div class='inline'>
161
+ <p>Returns the value of attribute user_data_dir.</p>
162
+ </div></span>
163
+
164
+ </li>
165
+
166
+
167
+ </ul>
168
+
169
+
170
+
171
+
172
+
173
+ <h2>
174
+ Instance Method Summary
175
+ <small><a href="#" class="summary_toggle">collapse</a></small>
176
+ </h2>
177
+
178
+ <ul class="summary">
179
+
180
+ <li class="public ">
181
+ <span class="summary_signature">
182
+
183
+ <a href="#devtools%3F-instance_method" title="#devtools? (instance method)">#<strong>devtools?</strong> &#x21d2; Boolean </a>
184
+
185
+
186
+
187
+ </span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ <span class="summary_desc"><div class='inline'></div></span>
198
+
199
+ </li>
200
+
201
+
202
+ <li class="public ">
203
+ <span class="summary_signature">
204
+
205
+ <a href="#headless%3F-instance_method" title="#headless? (instance method)">#<strong>headless?</strong> &#x21d2; Boolean </a>
206
+
207
+
208
+
209
+ </span>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ <span class="summary_desc"><div class='inline'></div></span>
220
+
221
+ </li>
222
+
223
+
224
+ <li class="public ">
225
+ <span class="summary_signature">
226
+
227
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(options) &#x21d2; ChromeArgOptions </a>
228
+
229
+
230
+
231
+ </span>
232
+
233
+
234
+ <span class="note title constructor">constructor</span>
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ <span class="summary_desc"><div class='inline'><ul><li>
244
+ <p>@property boolean= headless * @property Array&lt;string&gt;= args * @property string= userDataDir * @property boolean= devtools.</p>
245
+ </li></ul>
246
+ </div></span>
247
+
248
+ </li>
249
+
250
+
251
+ </ul>
252
+
253
+
254
+ <div id="constructor_details" class="method_details_list">
255
+ <h2>Constructor Details</h2>
256
+
257
+ <div class="method_details first">
258
+ <h3 class="signature first" id="initialize-instance_method">
259
+
260
+ #<strong>initialize</strong>(options) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Launcher::ChromeArgOptions (class)">ChromeArgOptions</a></span></tt>
261
+
262
+
263
+
264
+
265
+
266
+ </h3><div class="docstring">
267
+ <div class="discussion">
268
+ <ul><li>
269
+ <p>@property boolean= headless</p>
270
+ </li><li>
271
+ <p>@property Array&lt;string&gt;= args</p>
272
+ </li><li>
273
+ <p>@property string= userDataDir</p>
274
+ </li><li>
275
+ <p>@property boolean= devtools</p>
276
+ </li></ul>
277
+
278
+
279
+ </div>
280
+ </div>
281
+ <div class="tags">
282
+
283
+
284
+ </div><table class="source_code">
285
+ <tr>
286
+ <td>
287
+ <pre class="lines">
288
+
289
+
290
+ 29
291
+ 30
292
+ 31
293
+ 32
294
+ 33
295
+ 34
296
+ 35
297
+ 36
298
+ 37</pre>
299
+ </td>
300
+ <td>
301
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 29</span>
302
+
303
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
304
+ <span class='ivar'>@args</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:args</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
305
+ <span class='ivar'>@user_data_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:user_data_dir</span><span class='rbracket'>]</span>
306
+ <span class='ivar'>@devtools</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:devtools</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
307
+ <span class='ivar'>@headless</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:headless</span><span class='rbracket'>]</span>
308
+ <span class='kw'>if</span> <span class='ivar'>@headless</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
309
+ <span class='ivar'>@headless</span> <span class='op'>=</span> <span class='op'>!</span><span class='ivar'>@devtools</span>
310
+ <span class='kw'>end</span>
311
+ <span class='kw'>end</span></pre>
312
+ </td>
313
+ </tr>
314
+ </table>
315
+ </div>
316
+
317
+ </div>
318
+
319
+ <div id="instance_attr_details" class="attr_details">
320
+ <h2>Instance Attribute Details</h2>
321
+
322
+
323
+ <span id=""></span>
324
+ <div class="method_details first">
325
+ <h3 class="signature first" id="args-instance_method">
326
+
327
+ #<strong>args</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
328
+
329
+
330
+
331
+
332
+
333
+ </h3><div class="docstring">
334
+ <div class="discussion">
335
+
336
+ <p>Returns the value of attribute args.</p>
337
+
338
+
339
+ </div>
340
+ </div>
341
+ <div class="tags">
342
+
343
+
344
+ </div><table class="source_code">
345
+ <tr>
346
+ <td>
347
+ <pre class="lines">
348
+
349
+
350
+ 39
351
+ 40
352
+ 41</pre>
353
+ </td>
354
+ <td>
355
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 39</span>
356
+
357
+ <span class='kw'>def</span> <span class='id identifier rubyid_args'>args</span>
358
+ <span class='ivar'>@args</span>
359
+ <span class='kw'>end</span></pre>
360
+ </td>
361
+ </tr>
362
+ </table>
363
+ </div>
364
+
365
+
366
+ <span id=""></span>
367
+ <div class="method_details ">
368
+ <h3 class="signature " id="user_data_dir-instance_method">
369
+
370
+ #<strong>user_data_dir</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
371
+
372
+
373
+
374
+
375
+
376
+ </h3><div class="docstring">
377
+ <div class="discussion">
378
+
379
+ <p>Returns the value of attribute user_data_dir.</p>
380
+
381
+
382
+ </div>
383
+ </div>
384
+ <div class="tags">
385
+
386
+
387
+ </div><table class="source_code">
388
+ <tr>
389
+ <td>
390
+ <pre class="lines">
391
+
392
+
393
+ 39
394
+ 40
395
+ 41</pre>
396
+ </td>
397
+ <td>
398
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 39</span>
399
+
400
+ <span class='kw'>def</span> <span class='id identifier rubyid_user_data_dir'>user_data_dir</span>
401
+ <span class='ivar'>@user_data_dir</span>
402
+ <span class='kw'>end</span></pre>
403
+ </td>
404
+ </tr>
405
+ </table>
406
+ </div>
407
+
408
+ </div>
409
+
410
+
411
+ <div id="instance_method_details" class="method_details_list">
412
+ <h2>Instance Method Details</h2>
413
+
414
+
415
+ <div class="method_details first">
416
+ <h3 class="signature first" id="devtools?-instance_method">
417
+
418
+ #<strong>devtools?</strong> &#x21d2; <tt>Boolean</tt>
419
+
420
+
421
+
422
+
423
+
424
+ </h3><div class="docstring">
425
+ <div class="discussion">
426
+
427
+
428
+ </div>
429
+ </div>
430
+ <div class="tags">
431
+
432
+ <p class="tag_title">Returns:</p>
433
+ <ul class="return">
434
+
435
+ <li>
436
+
437
+
438
+ <span class='type'>(<tt>Boolean</tt>)</span>
439
+
440
+
441
+
442
+ </li>
443
+
444
+ </ul>
445
+
446
+ </div><table class="source_code">
447
+ <tr>
448
+ <td>
449
+ <pre class="lines">
450
+
451
+
452
+ 45
453
+ 46
454
+ 47</pre>
455
+ </td>
456
+ <td>
457
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 45</span>
458
+
459
+ <span class='kw'>def</span> <span class='id identifier rubyid_devtools?'>devtools?</span>
460
+ <span class='ivar'>@devtools</span>
461
+ <span class='kw'>end</span></pre>
462
+ </td>
463
+ </tr>
464
+ </table>
465
+ </div>
466
+
467
+ <div class="method_details ">
468
+ <h3 class="signature " id="headless?-instance_method">
469
+
470
+ #<strong>headless?</strong> &#x21d2; <tt>Boolean</tt>
471
+
472
+
473
+
474
+
475
+
476
+ </h3><div class="docstring">
477
+ <div class="discussion">
478
+
479
+
480
+ </div>
481
+ </div>
482
+ <div class="tags">
483
+
484
+ <p class="tag_title">Returns:</p>
485
+ <ul class="return">
486
+
487
+ <li>
488
+
489
+
490
+ <span class='type'>(<tt>Boolean</tt>)</span>
491
+
492
+
493
+
494
+ </li>
495
+
496
+ </ul>
497
+
498
+ </div><table class="source_code">
499
+ <tr>
500
+ <td>
501
+ <pre class="lines">
502
+
503
+
504
+ 41
505
+ 42
506
+ 43</pre>
507
+ </td>
508
+ <td>
509
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 41</span>
510
+
511
+ <span class='kw'>def</span> <span class='id identifier rubyid_headless?'>headless?</span>
512
+ <span class='ivar'>@headless</span>
513
+ <span class='kw'>end</span></pre>
514
+ </td>
515
+ </tr>
516
+ </table>
517
+ </div>
518
+
519
+ </div>
520
+
521
+ </div>
522
+
523
+ <div id="footer">
524
+ Generated on Tue Jun 9 00:13:41 2020 by
525
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
526
+ 0.9.24 (ruby-2.6.3).
527
+ </div>
528
+
529
+ </div>
530
+ </body>
531
+ </html>