puppeteer-ruby 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/Puppeteer.html +2 -2
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +1 -1
- data/docs/Puppeteer/BrowserContext.html +1 -1
- data/docs/Puppeteer/BrowserFetcher.html +1 -1
- data/docs/Puppeteer/BrowserRunner.html +1 -1
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
- data/docs/Puppeteer/CDPSession.html +1 -1
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
- data/docs/Puppeteer/Connection.html +1 -1
- data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
- data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +1 -1
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +1 -1
- data/docs/Puppeteer/ConsoleMessage.html +1 -1
- data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
- data/docs/Puppeteer/DOMWorld.html +75 -1
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +1 -1
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +1 -1
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +1 -1
- data/docs/Puppeteer/ElementHandle/BoxModel.html +1 -1
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +1 -1
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +1 -1
- data/docs/Puppeteer/ElementHandle/Point.html +1 -1
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +1 -1
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +1 -1
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
- data/docs/Puppeteer/FileChooser.html +1 -1
- data/docs/Puppeteer/Frame.html +44 -22
- data/docs/Puppeteer/FrameManager.html +1 -1
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +36 -31
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
- data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
- data/docs/Puppeteer/Mouse.html +1 -1
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +1 -1
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +5 -5
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +1 -1
- data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
- data/docs/Puppeteer/Page/ScriptTag.html +1 -1
- data/docs/Puppeteer/Page/StyleTag.html +1 -1
- data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
- data/docs/Puppeteer/RemoteObject.html +1 -1
- data/docs/Puppeteer/Target.html +1 -1
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +1 -1
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +1 -1
- data/docs/Puppeteer/WaitTask.html +1 -1
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
- data/docs/Puppeteer/WebSocket.html +1 -1
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocket/TransportError.html +1 -1
- data/docs/Puppeteer/WebSocketTransport.html +1 -1
- data/docs/_index.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +278 -270
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer/dom_world.rb +4 -6
- data/lib/puppeteer/frame.rb +1 -0
- data/lib/puppeteer/launcher/chrome.rb +9 -7
- data/lib/puppeteer/page.rb +2 -2
- data/lib/puppeteer/version.rb +1 -1
- metadata +1 -1
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Wed Jun 24 03:07:58 2020 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.24 (ruby-2.6.3).
|
122
122
|
</div>
|
data/lib/puppeteer/dom_world.rb
CHANGED
@@ -411,12 +411,10 @@ class Puppeteer::DOMWorld
|
|
411
411
|
# return new WaitTask(this, pageFunction, 'function', polling, timeout, ...args).promise;
|
412
412
|
# }
|
413
413
|
|
414
|
-
#
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
# return this.evaluate(() => document.title);
|
419
|
-
# }
|
414
|
+
# @return [String]
|
415
|
+
def title
|
416
|
+
evaluate('() => document.title')
|
417
|
+
end
|
420
418
|
|
421
419
|
# @param selector_or_xpath [String]
|
422
420
|
# @param is_xpath [Boolean]
|
data/lib/puppeteer/frame.rb
CHANGED
@@ -139,6 +139,7 @@ module Puppeteer::Launcher
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
+
# @return [DefaultArgs]
|
142
143
|
def default_args(options = nil)
|
143
144
|
if options.nil?
|
144
145
|
@default_args ||= DefaultArgs.new(@chrome_arg_options)
|
@@ -147,8 +148,7 @@ module Puppeteer::Launcher
|
|
147
148
|
end
|
148
149
|
end
|
149
150
|
|
150
|
-
# @
|
151
|
-
# @return {!Promise<!Browser>}
|
151
|
+
# @return [Puppeteer::Browser]
|
152
152
|
def connect(options = {})
|
153
153
|
@browser_options = BrowserOptions.new(options)
|
154
154
|
browser_ws_endpoint = options[:browser_ws_endpoint]
|
@@ -187,11 +187,13 @@ module Puppeteer::Launcher
|
|
187
187
|
|
188
188
|
# @return [Puppeteer::Connection]
|
189
189
|
private def connect_with_browser_url(browser_url)
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
190
|
+
require 'net/http'
|
191
|
+
uri = URI(browser_url)
|
192
|
+
uri.path = '/json/version'
|
193
|
+
response_body = Net::HTTP.get(uri)
|
194
|
+
json = JSON.parse(response_body)
|
195
|
+
connection_url = json['webSocketDebuggerUrl']
|
196
|
+
connect_with_browser_ws_endpoint(connection_url)
|
195
197
|
end
|
196
198
|
|
197
199
|
# @return [Puppeteer::Connection]
|
data/lib/puppeteer/page.rb
CHANGED
data/lib/puppeteer/version.rb
CHANGED