wdio-visual-regression-service icon indicating copy to clipboard operation
wdio-visual-regression-service copied to clipboard

Safari screenshots generated when using Chrome with --headless

Open yebrahim opened this issue 6 years ago • 3 comments

I'm running visual regression tests with the following section in my wdio.config.js:

  capabilities: [{
    maxInstances: 5,
    browserName: 'chrome',
    chromeOptions: {
      args: headless ? ['--headless', '--disable-gpu', '--window-size=1024,800'] : [],
    },
  }],

If and only if headless is true, adding the argument to the Chrome process, screenshots get generated for both Chrome and Safari.

yebrahim avatar May 10 '18 19:05 yebrahim

I have the same issue. For some reason context.browser.name returns Safari 7.0 when you use the headless flag with chrome.

tnypxl avatar May 14 '18 14:05 tnypxl

Yes, I too am having this issue. Screenshots get appended with Safari.

shwetaneelsharma avatar May 14 '18 14:05 shwetaneelsharma

See bestiejs/platform.js#145. Until this gets merged and released you could use the browser name of capabilities as a workaround.

zinserjan avatar May 18 '18 19:05 zinserjan