Skip to content

Commit

Permalink
Disable Chrome's GPU support in BrowserWebDriverContainer (#4315)
Browse files Browse the repository at this point in the history
* Trigger selenium build on CI

* Try again to trigger build

* Apply potential fix by disabling GPU

* Also --disable-dev-shm-usage

* Alwas add disable-gpu flag

* Smaller check for hack

* Smaller check for hack
  • Loading branch information
kiview authored Jul 30, 2021
1 parent 38a443f commit 520cfeb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ protected void configure() {
}
}

// Hack for new selenium-chrome image that contains Chrome 92.
// If not disabled, container startup will fail in most cases and consume excessive amounts of CPU.
if (capabilities instanceof ChromeOptions) {
ChromeOptions options = (ChromeOptions) this.capabilities;
options.addArguments("--disable-gpu");
}

if (recordingMode != VncRecordingMode.SKIP) {

if (vncRecordingDirectory == null) {
Expand Down

0 comments on commit 520cfeb

Please sign in to comment.