question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome shows no text when started by chromedriver

See original GitHub issue

If I run tests in an angular-cli project via karma with chromedriver 2.40 chrome shows no text at all. The tests are successful, even if I check for HTML text values, but nothing is readable. bildschirmfoto 2018-06-29 um 22 01 44

Even the dev tools (here opened in the right bar) and any other website I open have no text rendered. When running the end2end Tests with protractor I had the same problem which I could fix by adding the flag --no-sandbox. In Karma that didn’t help.

If I open another Chrome instance manually everything works as expected.

bildschirmfoto 2018-06-29 um 21 57 51

I’m on MacOSX Sierra 10.12.6. Chrome Version is 67.0.3396.99 (Offizieller Build) (64-Bit) My karma config is: `

basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
  require('karma-jasmine'),
  require('karma-chrome-launcher'),
  require('karma-jasmine-html-reporter'),
  require('karma-coverage-istanbul-reporter'),
  require('@angular-devkit/build-angular/plugins/karma')
],
client: {
  clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
  dir: require('path').join(__dirname, '../coverage'),
  reports: ['html', 'lcovonly'],
  fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false

`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

7reactions
edwinmcommented, Jul 2, 2018

I had the same problem and found a fix: add the --disable-gpu flag.

config.set({
...
    browsers: ['ChromeNoGpu'],
...
    },
    customLaunchers: {
      ChromeNoGpu: {
        base: 'Chrome',
        flags: ['--disable-gpu']
      }
    }
  });
0reactions
rogeriopvlcommented, Dec 7, 2018

Issue seems to be fixed in recent versions.

Failed to reproduce the problem with a vanilla angular-cli project:

image
Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Chrome shows no text/fonts when opened with selenium
Google Chrome shows no text/fonts when opened with selenium · 2. I just found out that the scripts still work if i execute...
Read more >
Chrome doesn't start or crashes immediately - ChromeDriver
First, try launching the same Chrome binary that your test uses from a normal user command prompt (check your chromedriver.log file to see...
Read more >
Fix text that isn't displaying properly - Google Chrome Help
Text looks fuzzy or blurry (Windows only) If text doesn't look clear on. ... On your Windows computer, click the Start menu: Start...
Read more >
ChromeDriver 103.0.5060.53 has been released
We are happy to announce that ChromeDriver version 103.0.5060.53 has been released, and is now available at the ChromeDriver Downloads site.
Read more >
How To Remove Chrome Warning In Selenium WebDriver
... I will show you how you can fix Chrome Warning In Selenium WebDriver. While working with chrome you will get Timed out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found