Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created August 3, 2020 06:16
Show Gist options
  • Save seleniumgists/c25918f79847ffd9d136ea939a5f9490 to your computer and use it in GitHub Desktop.
Save seleniumgists/c25918f79847ffd9d136ea939a5f9490 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
chrome_options = Selenium::WebDriver::Chrome::Options.new
experimentalFlags = ['enable-webrtc-hide-local-ips-with-mdns@1']
chromeLocalStatePrefs = { 'browser.enabled_labs_experiments' => experimentalFlags}
chrome_options.add_option('localState',chromeLocalStatePrefs)
driver = Selenium::WebDriver.for(:chrome, options: chrome_options)
driver.get('<chrome://flags/#enable-webrtc-hide-local-ips-with-mdns>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment