Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari screenshots generated when using Chrome with --headless #81

Open
yebrahim opened this issue May 10, 2018 · 3 comments
Open

Safari screenshots generated when using Chrome with --headless #81

yebrahim opened this issue May 10, 2018 · 3 comments

Comments

@yebrahim
Copy link

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.

@tnypxl
Copy link

tnypxl commented May 14, 2018

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

@shwetaneelsharma
Copy link

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

@zinserjan
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants