puppeteer-ruby 0.0.5 → 0.0.6

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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/docs/Puppeteer.html +2 -2
  3. data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
  4. data/docs/Puppeteer/Browser.html +1 -1
  5. data/docs/Puppeteer/BrowserContext.html +1 -1
  6. data/docs/Puppeteer/BrowserFetcher.html +1 -1
  7. data/docs/Puppeteer/BrowserRunner.html +1 -1
  8. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
  9. data/docs/Puppeteer/CDPSession.html +86 -57
  10. data/docs/Puppeteer/CDPSession/Error.html +1 -1
  11. data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
  12. data/docs/Puppeteer/Connection.html +1 -1
  13. data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
  14. data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
  15. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +1 -1
  16. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +1 -1
  17. data/docs/Puppeteer/ConsoleMessage.html +1 -1
  18. data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
  19. data/docs/Puppeteer/DOMWorld.html +610 -68
  20. data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
  21. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
  22. data/docs/Puppeteer/DebugPrint.html +2 -2
  23. data/docs/Puppeteer/Device.html +1 -1
  24. data/docs/Puppeteer/Devices.html +1 -1
  25. data/docs/Puppeteer/ElementHandle.html +306 -109
  26. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
  27. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
  28. data/docs/Puppeteer/ElementHandle/Point.html +28 -28
  29. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
  30. data/docs/Puppeteer/EmulationManager.html +1 -1
  31. data/docs/Puppeteer/EventCallbackable.html +1 -1
  32. data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
  33. data/docs/Puppeteer/ExecutionContext.html +124 -1
  34. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
  35. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
  36. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +2 -2
  37. data/docs/Puppeteer/Frame.html +117 -65
  38. data/docs/Puppeteer/FrameManager.html +1 -1
  39. data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
  40. data/docs/Puppeteer/IfPresent.html +1 -1
  41. data/docs/Puppeteer/JSHandle.html +1 -1
  42. data/docs/Puppeteer/Keyboard.html +1 -1
  43. data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
  44. data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
  45. data/docs/Puppeteer/Launcher.html +1 -1
  46. data/docs/Puppeteer/Launcher/Base.html +1 -1
  47. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
  48. data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
  49. data/docs/Puppeteer/Launcher/Chrome.html +1 -1
  50. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
  51. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
  52. data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
  53. data/docs/Puppeteer/LifecycleWatcher.html +1 -1
  54. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
  55. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
  56. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
  57. data/docs/Puppeteer/Mouse.html +1 -1
  58. data/docs/Puppeteer/Mouse/Button.html +1 -1
  59. data/docs/Puppeteer/NetworkManager.html +1 -1
  60. data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
  61. data/docs/Puppeteer/Page.html +95 -43
  62. data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
  63. data/docs/Puppeteer/Page/ScriptTag.html +1 -1
  64. data/docs/Puppeteer/Page/StyleTag.html +1 -1
  65. data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
  66. data/docs/Puppeteer/RemoteObject.html +1 -1
  67. data/docs/Puppeteer/Target.html +1 -1
  68. data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
  69. data/docs/Puppeteer/Target/TargetInfo.html +1 -1
  70. data/docs/Puppeteer/TimeoutError.html +1 -1
  71. data/docs/Puppeteer/TimeoutSettings.html +1 -1
  72. data/docs/Puppeteer/TouchScreen.html +1 -1
  73. data/docs/Puppeteer/Viewport.html +1 -1
  74. data/docs/Puppeteer/WaitTask.html +434 -8
  75. data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
  76. data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
  77. data/docs/Puppeteer/WebSocket.html +1 -1
  78. data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
  79. data/docs/Puppeteer/WebSocketTransport.html +1 -1
  80. data/docs/Puppeteer/WebSocktTransportError.html +1 -1
  81. data/docs/_index.html +8 -1
  82. data/docs/class_list.html +1 -1
  83. data/docs/file.README.html +1 -1
  84. data/docs/index.html +1 -1
  85. data/docs/method_list.html +615 -519
  86. data/docs/top-level-namespace.html +1 -1
  87. data/lib/puppeteer/cdp_session.rb +33 -11
  88. data/lib/puppeteer/dom_world.rb +97 -90
  89. data/lib/puppeteer/element_handle.rb +36 -54
  90. data/lib/puppeteer/execution_context.rb +23 -17
  91. data/lib/puppeteer/frame.rb +13 -11
  92. data/lib/puppeteer/page.rb +29 -11
  93. data/lib/puppeteer/version.rb +1 -1
  94. data/lib/puppeteer/wait_task.rb +183 -1
  95. metadata +3 -2
@@ -2404,7 +2404,7 @@
2404
2404
  </div>
2405
2405
 
2406
2406
  <div id="footer">
2407
- Generated on Sun Apr 26 15:52:57 2020 by
2407
+ Generated on Mon May 25 23:22:50 2020 by
2408
2408
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2409
2409
  0.9.24 (ruby-2.6.3).
2410
2410
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sun Apr 26 15:52:57 2020 by
117
+ Generated on Mon May 25 23:22:50 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>
@@ -212,7 +212,7 @@
212
212
  </div>
213
213
 
214
214
  <div id="footer">
215
- Generated on Sun Apr 26 15:52:55 2020 by
215
+ Generated on Mon May 25 23:22:48 2020 by
216
216
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
217
217
  0.9.24 (ruby-2.6.3).
218
218
  </div>
@@ -1342,7 +1342,7 @@
1342
1342
  </div>
1343
1343
 
1344
1344
  <div id="footer">
1345
- Generated on Sun Apr 26 15:52:57 2020 by
1345
+ Generated on Mon May 25 23:22:50 2020 by
1346
1346
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1347
1347
  0.9.24 (ruby-2.6.3).
1348
1348
  </div>
@@ -1547,7 +1547,7 @@
1547
1547
  </div>
1548
1548
 
1549
1549
  <div id="footer">
1550
- Generated on Sun Apr 26 15:52:57 2020 by
1550
+ Generated on Mon May 25 23:22:49 2020 by
1551
1551
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1552
1552
  0.9.24 (ruby-2.6.3).
1553
1553
  </div>
@@ -821,7 +821,7 @@
821
821
  </div>
822
822
 
823
823
  <div id="footer">
824
- Generated on Sun Apr 26 15:52:58 2020 by
824
+ Generated on Mon May 25 23:22:51 2020 by
825
825
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
826
826
  0.9.24 (ruby-2.6.3).
827
827
  </div>
@@ -593,7 +593,7 @@
593
593
  </div>
594
594
 
595
595
  <div id="footer">
596
- Generated on Sun Apr 26 15:52:58 2020 by
596
+ Generated on Mon May 25 23:22:51 2020 by
597
597
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
598
598
  0.9.24 (ruby-2.6.3).
599
599
  </div>
@@ -227,7 +227,7 @@ timeout = 30000
227
227
  </div>
228
228
 
229
229
  <div id="footer">
230
- Generated on Sun Apr 26 15:52:55 2020 by
230
+ Generated on Mon May 25 23:22:48 2020 by
231
231
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
232
232
  0.9.24 (ruby-2.6.3).
233
233
  </div>
@@ -375,7 +375,7 @@
375
375
  </div>
376
376
 
377
377
  <div id="footer">
378
- Generated on Sun Apr 26 15:52:57 2020 by
378
+ Generated on Mon May 25 23:22:50 2020 by
379
379
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
380
380
  0.9.24 (ruby-2.6.3).
381
381
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sun Apr 26 15:52:57 2020 by
117
+ Generated on Mon May 25 23:22:50 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>
@@ -431,7 +431,7 @@
431
431
  </div>
432
432
 
433
433
  <div id="footer">
434
- Generated on Sun Apr 26 15:52:58 2020 by
434
+ Generated on Mon May 25 23:22:51 2020 by
435
435
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
436
436
  0.9.24 (ruby-2.6.3).
437
437
  </div>
@@ -618,7 +618,7 @@
618
618
  </div>
619
619
 
620
620
  <div id="footer">
621
- Generated on Sun Apr 26 15:52:57 2020 by
621
+ Generated on Mon May 25 23:22:50 2020 by
622
622
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
623
623
  0.9.24 (ruby-2.6.3).
624
624
  </div>
@@ -372,7 +372,7 @@
372
372
  </div>
373
373
 
374
374
  <div id="footer">
375
- Generated on Sun Apr 26 15:52:57 2020 by
375
+ Generated on Mon May 25 23:22:50 2020 by
376
376
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
377
377
  0.9.24 (ruby-2.6.3).
378
378
  </div>
@@ -521,7 +521,7 @@
521
521
  </div>
522
522
 
523
523
  <div id="footer">
524
- Generated on Sun Apr 26 15:52:58 2020 by
524
+ Generated on Mon May 25 23:22:51 2020 by
525
525
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
526
526
  0.9.24 (ruby-2.6.3).
527
527
  </div>
@@ -883,7 +883,7 @@
883
883
  </div>
884
884
 
885
885
  <div id="footer">
886
- Generated on Sun Apr 26 15:52:58 2020 by
886
+ Generated on Mon May 25 23:22:51 2020 by
887
887
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
888
888
  0.9.24 (ruby-2.6.3).
889
889
  </div>
@@ -824,7 +824,7 @@
824
824
  </div>
825
825
 
826
826
  <div id="footer">
827
- Generated on Sun Apr 26 15:52:58 2020 by
827
+ Generated on Mon May 25 23:22:50 2020 by
828
828
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
829
829
  0.9.24 (ruby-2.6.3).
830
830
  </div>
@@ -353,7 +353,7 @@
353
353
  </div>
354
354
 
355
355
  <div id="footer">
356
- Generated on Sun Apr 26 15:52:58 2020 by
356
+ Generated on Mon May 25 23:22:50 2020 by
357
357
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
358
358
  0.9.24 (ruby-2.6.3).
359
359
  </div>
@@ -196,7 +196,7 @@
196
196
  </div>
197
197
 
198
198
  <div id="footer">
199
- Generated on Sun Apr 26 15:52:58 2020 by
199
+ Generated on Mon May 25 23:22:50 2020 by
200
200
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
201
201
  0.9.24 (ruby-2.6.3).
202
202
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sun Apr 26 15:52:58 2020 by
117
+ Generated on Mon May 25 23:22:50 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>
@@ -1095,7 +1095,7 @@
1095
1095
  </div>
1096
1096
 
1097
1097
  <div id="footer">
1098
- Generated on Sun Apr 26 15:52:56 2020 by
1098
+ Generated on Mon May 25 23:22:49 2020 by
1099
1099
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1100
1100
  0.9.24 (ruby-2.6.3).
1101
1101
  </div>
@@ -126,7 +126,7 @@
126
126
  </div>
127
127
 
128
128
  <div id="footer">
129
- Generated on Sun Apr 26 15:52:55 2020 by
129
+ Generated on Mon May 25 23:22:48 2020 by
130
130
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
131
  0.9.24 (ruby-2.6.3).
132
132
  </div>
@@ -891,7 +891,7 @@
891
891
  </div>
892
892
 
893
893
  <div id="footer">
894
- Generated on Sun Apr 26 15:52:57 2020 by
894
+ Generated on Mon May 25 23:22:50 2020 by
895
895
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
896
896
  0.9.24 (ruby-2.6.3).
897
897
  </div>
@@ -375,7 +375,7 @@
375
375
  </div>
376
376
 
377
377
  <div id="footer">
378
- Generated on Sun Apr 26 15:52:57 2020 by
378
+ Generated on Mon May 25 23:22:50 2020 by
379
379
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
380
380
  0.9.24 (ruby-2.6.3).
381
381
  </div>
@@ -1360,7 +1360,7 @@
1360
1360
  <li class="public ">
1361
1361
  <span class="summary_signature">
1362
1362
 
1363
- <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong>(selector, text, delay: nil) &#x21d2; Object </a>
1363
+ <a href="#type_text-instance_method" title="#type_text (instance method)">#<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; Object </a>
1364
1364
 
1365
1365
 
1366
1366
 
@@ -1448,7 +1448,7 @@
1448
1448
  <li class="public ">
1449
1449
  <span class="summary_signature">
1450
1450
 
1451
- <a href="#wait_for_selector-instance_method" title="#wait_for_selector (instance method)">#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; !Promise&lt;?Puppeteer.ElementHandle&gt; </a>
1451
+ <a href="#wait_for_selector-instance_method" title="#wait_for_selector (instance method)">#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; Object </a>
1452
1452
 
1453
1453
 
1454
1454
 
@@ -1470,7 +1470,7 @@
1470
1470
  <li class="public ">
1471
1471
  <span class="summary_signature">
1472
1472
 
1473
- <a href="#wait_for_xpath-instance_method" title="#wait_for_xpath (instance method)">#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; !Promise&lt;?Puppeteer.ElementHandle&gt; </a>
1473
+ <a href="#wait_for_xpath-instance_method" title="#wait_for_xpath (instance method)">#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; Object </a>
1474
1474
 
1475
1475
 
1476
1476
 
@@ -1728,8 +1728,8 @@
1728
1728
  <span class='kw'>next</span>
1729
1729
  <span class='kw'>end</span>
1730
1730
 
1731
- <span class='id identifier rubyid_session'>session</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Connection.html" title="Puppeteer::Connection (class)">Connection</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_session'><span class='object_link'><a href="Connection.html#from_session-class_method" title="Puppeteer::Connection.from_session (method)">from_session</a></span></span><span class='lparen'>(</span><span class='ivar'>@client</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_session'>session</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>sessionId</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
1732
- <span class='comment'># const worker = new Worker(session, event.targetInfo.url, this._addConsoleMessage.bind(this), this._handleException.bind(this));
1731
+ <span class='id identifier rubyid_session'>session</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Connection.html" title="Puppeteer::Connection (class)">Connection</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_session'><span class='object_link'><a href="Connection.html#from_session-class_method" title="Puppeteer::Connection.from_session (method)">from_session</a></span></span><span class='lparen'>(</span><span class='ivar'>@client</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_session'>session</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>sessionId</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='comment'># rubocop:disable Lint/UselessAssignment
1732
+ </span> <span class='comment'># const worker = new Worker(session, event.targetInfo.url, this._addConsoleMessage.bind(this), this._handleException.bind(this));
1733
1733
  </span> <span class='comment'># this._workers.set(event.sessionId, worker);
1734
1734
  </span> <span class='comment'># this.emit(Events.Page.WorkerCreated, worker);
1735
1735
  </span> <span class='kw'>end</span>
@@ -4953,9 +4953,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4953
4953
  </div>
4954
4954
 
4955
4955
  <div class="method_details ">
4956
- <h3 class="signature " id="type-instance_method">
4956
+ <h3 class="signature " id="type_text-instance_method">
4957
4957
 
4958
- #<strong>type</strong>(selector, text, delay: nil) &#x21d2; <tt>Object</tt>
4958
+ #<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; <tt>Object</tt>
4959
4959
 
4960
4960
 
4961
4961
 
@@ -4976,7 +4976,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4976
4976
  <span class='name'>selector</span>
4977
4977
 
4978
4978
 
4979
- <span class='type'>(<tt>string</tt>)</span>
4979
+ <span class='type'>(<tt>String</tt>)</span>
4980
4980
 
4981
4981
 
4982
4982
 
@@ -4987,7 +4987,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4987
4987
  <span class='name'>text</span>
4988
4988
 
4989
4989
 
4990
- <span class='type'>(<tt>string</tt>)</span>
4990
+ <span class='type'>(<tt>String</tt>)</span>
4991
4991
 
4992
4992
 
4993
4993
 
@@ -4995,12 +4995,14 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4995
4995
 
4996
4996
  <li>
4997
4997
 
4998
- <span class='name'>options</span>
4998
+ <span class='name'>delay</span>
4999
4999
 
5000
5000
 
5001
- <span class='type'>(<tt>{delay: (number|undefined)}=</tt>)</span>
5001
+ <span class='type'>(<tt>Number</tt>)</span>
5002
5002
 
5003
5003
 
5004
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5005
+
5004
5006
 
5005
5007
  </li>
5006
5008
 
@@ -5020,8 +5022,8 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5020
5022
  <td>
5021
5023
  <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 979</span>
5022
5024
 
5023
- <span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5024
- <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='rparen'>)</span>
5025
+ <span class='kw'>def</span> <span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5026
+ <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='rparen'>)</span>
5025
5027
  <span class='kw'>end</span></pre>
5026
5028
  </td>
5027
5029
  </tr>
@@ -5210,12 +5212,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5210
5212
  <pre class="lines">
5211
5213
 
5212
5214
 
5213
- 1011
5214
- 1012
5215
- 1013</pre>
5215
+ 1029
5216
+ 1030
5217
+ 1031</pre>
5216
5218
  </td>
5217
5219
  <td>
5218
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1011</span>
5220
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1029</span>
5219
5221
 
5220
5222
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
5221
5223
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
@@ -5228,7 +5230,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5228
5230
  <div class="method_details ">
5229
5231
  <h3 class="signature " id="wait_for_selector-instance_method">
5230
5232
 
5231
- #<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>
5233
+ #<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
5232
5234
 
5233
5235
 
5234
5236
 
@@ -5249,7 +5251,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5249
5251
  <span class='name'>selector</span>
5250
5252
 
5251
5253
 
5252
- <span class='type'>(<tt>string</tt>)</span>
5254
+ <span class='type'>(<tt>String</tt>)</span>
5253
5255
 
5254
5256
 
5255
5257
 
@@ -5257,43 +5259,68 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5257
5259
 
5258
5260
  <li>
5259
5261
 
5260
- <span class='name'>options</span>
5262
+ <span class='name'>visible</span>
5261
5263
 
5262
5264
 
5263
- <span class='type'>(<tt>!{visible?: boolean, hidden?: boolean, timeout?: number}=</tt>)</span>
5265
+ <span class='type'>(<tt>Boolean</tt>)</span>
5264
5266
 
5265
5267
 
5268
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5269
+
5270
+
5271
+ &mdash;
5272
+ <div class='inline'>
5273
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
5274
+ </div>
5266
5275
 
5267
5276
  </li>
5268
5277
 
5269
- </ul>
5270
-
5271
- <p class="tag_title">Returns:</p>
5272
- <ul class="return">
5278
+ <li>
5279
+
5280
+ <span class='name'>hidden</span>
5281
+
5282
+
5283
+ <span class='type'>(<tt>Boolean</tt>)</span>
5284
+
5285
+
5286
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5287
+
5288
+
5289
+ &mdash;
5290
+ <div class='inline'>
5291
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
5292
+ </div>
5293
+
5294
+ </li>
5273
5295
 
5274
5296
  <li>
5275
5297
 
5298
+ <span class='name'>timeout</span>
5276
5299
 
5277
- <span class='type'>(<tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>)</span>
5278
5300
 
5301
+ <span class='type'>(<tt>Integer</tt>)</span>
5302
+
5303
+
5304
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5279
5305
 
5280
5306
 
5281
5307
  </li>
5282
5308
 
5283
5309
  </ul>
5284
5310
 
5311
+
5285
5312
  </div><table class="source_code">
5286
5313
  <tr>
5287
5314
  <td>
5288
5315
  <pre class="lines">
5289
5316
 
5290
5317
 
5291
- 996
5292
5318
  997
5293
- 998</pre>
5319
+ 998
5320
+ 999</pre>
5294
5321
  </td>
5295
5322
  <td>
5296
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 996</span>
5323
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 997</span>
5297
5324
 
5298
5325
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5299
5326
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
@@ -5306,7 +5333,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5306
5333
  <div class="method_details ">
5307
5334
  <h3 class="signature " id="wait_for_xpath-instance_method">
5308
5335
 
5309
- #<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>
5336
+ #<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
5310
5337
 
5311
5338
 
5312
5339
 
@@ -5327,7 +5354,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5327
5354
  <span class='name'>xpath</span>
5328
5355
 
5329
5356
 
5330
- <span class='type'>(<tt>string</tt>)</span>
5357
+ <span class='type'>(<tt>String</tt>)</span>
5331
5358
 
5332
5359
 
5333
5360
 
@@ -5335,43 +5362,68 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5335
5362
 
5336
5363
  <li>
5337
5364
 
5338
- <span class='name'>options</span>
5365
+ <span class='name'>visible</span>
5339
5366
 
5340
5367
 
5341
- <span class='type'>(<tt>!{visible?: boolean, hidden?: boolean, timeout?: number}=</tt>)</span>
5368
+ <span class='type'>(<tt>Boolean</tt>)</span>
5342
5369
 
5343
5370
 
5371
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5372
+
5373
+
5374
+ &mdash;
5375
+ <div class='inline'>
5376
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
5377
+ </div>
5344
5378
 
5345
5379
  </li>
5346
5380
 
5347
- </ul>
5348
-
5349
- <p class="tag_title">Returns:</p>
5350
- <ul class="return">
5381
+ <li>
5382
+
5383
+ <span class='name'>hidden</span>
5384
+
5385
+
5386
+ <span class='type'>(<tt>Boolean</tt>)</span>
5387
+
5388
+
5389
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5390
+
5391
+
5392
+ &mdash;
5393
+ <div class='inline'>
5394
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
5395
+ </div>
5396
+
5397
+ </li>
5351
5398
 
5352
5399
  <li>
5353
5400
 
5401
+ <span class='name'>timeout</span>
5354
5402
 
5355
- <span class='type'>(<tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>)</span>
5356
5403
 
5404
+ <span class='type'>(<tt>Integer</tt>)</span>
5405
+
5406
+
5407
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5357
5408
 
5358
5409
 
5359
5410
  </li>
5360
5411
 
5361
5412
  </ul>
5362
5413
 
5414
+
5363
5415
  </div><table class="source_code">
5364
5416
  <tr>
5365
5417
  <td>
5366
5418
  <pre class="lines">
5367
5419
 
5368
5420
 
5369
- 1003
5370
- 1004
5371
- 1005</pre>
5421
+ 1013
5422
+ 1014
5423
+ 1015</pre>
5372
5424
  </td>
5373
5425
  <td>
5374
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1003</span>
5426
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1013</span>
5375
5427
 
5376
5428
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5377
5429
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
@@ -5416,7 +5468,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5416
5468
  </div>
5417
5469
 
5418
5470
  <div id="footer">
5419
- Generated on Sun Apr 26 15:52:56 2020 by
5471
+ Generated on Mon May 25 23:22:48 2020 by
5420
5472
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
5421
5473
  0.9.24 (ruby-2.6.3).
5422
5474
  </div>