Created
July 31, 2020 12:41
-
-
Save seleniumgists/8597159172e939a4f75e20270440e44f to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):002:1* options = { | |
irb(main):003:1* args: [], | |
irb(main):004:1* w3c: true, | |
irb(main):005:1* mobileEmulation: {}, | |
irb(main):006:1* prefs: {"enable-webrtc-hide-local-ips-with-mdns" => false}, | |
irb(main):007:1* extensions: [] | |
irb(main):008:0> } | |
irb(main):009:0> caps = Selenium::WebDriver::Chrome::Options.new(options: options) | |
irb(main):010:0> caps | |
=> #<Selenium::WebDriver::Chrome::Options:0x00007f7fe9f09c70 @args=#<Set: {}>, @binary=nil, @prefs={}, @extensions=[], @options={:args=>[], :w3c=>true, :mobileEmulation=>{}, :prefs=>{"enable-webrtc-hide-local-ips-with-mdns"=>false}, :extensions=>[]}, @emulation={}, @detach=nil, @profile=nil, @encoded_extensions=[]> | |
irb(main):011:0> @driver = Selenium::WebDriver.for(:chrome, options: caps) | |
2020-07-31 21:36:37 WARN Webdrivers Driver caching is turned off in this version, but will be enabled by default in 4.x. Set the value with `Webdrivers#cache_time=` in seconds | |
irb(main):012:0> @driver.capabilities | |
=> #<Selenium::WebDriver::Remote::W3C::Capabilities:0x00007f7fe8fdf858 @capabilities={:proxy=>nil, :browser_name=>"chrome", :browser_version=>"84.0.4147.105", :platform_name=>"mac os x", :accept_insecure_certs=>false, :page_load_strategy=>"normal", :implicit_timeout=>0, :page_load_timeout=>300000, :script_timeout=>30000, :remote_session_id=>nil, :accessibility_checks=>nil, :profile=>nil, :rotatable=>nil, :device=>nil, "chrome"=>{"chromedriverVersion"=>"84.0.4147.30 (48b3e868b4cc0aa7e8149519690b6f6949e110a8-refs/branch-heads/4147@{#310})", "userDataDir"=>"/var/folders/g7/lkml7xr91ybfshcp5n488z700000gp/T/.com.google.Chrome.VuqgW5"}, "goog:chromeOptions"=>{"debuggerAddress"=>"localhost:64365"}, "networkConnectionEnabled"=>false, "setWindowRect"=>true, "strictFileInteractability"=>false, "unhandledPromptBehavior"=>"dismiss and notify", "webauthn:virtualAuthenticators"=>true}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment