Skip to content

Instantly share code, notes, and snippets.

@nikz
Created April 21, 2020 22:39
Show Gist options
  • Save nikz/b2bc264515fe92000f6e7894c6d739b7 to your computer and use it in GitHub Desktop.
Save nikz/b2bc264515fe92000f6e7894c6d739b7 to your computer and use it in GitHub Desktop.
@driver = Selenium::WebDriver.for(:chrome, options: options)
@driver.execute_cdp('Emulation.setDefaultBackgroundColorOverride', {color: {r: 0, g: 0, b: 0, a: 0}})
@visoft
Copy link

visoft commented Feb 8, 2022

This works great, thanks for this gist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment