Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Running a Windows Chrome binary from WSL not working #4776

@csvan

Description

@csvan
  • Node Version: 9.8
  • Protractor Version: 5.1
  • Angular Version: N/A
  • Browser(s): Chrome 65
  • Operating System and Version Windows 10 Enterprise
  • Your protractor configuration file

Currently, the following config can be added in order to make WSL (Windows Susbsystem for Linux) use the locally installed Chrome on Windows in order to run component tests:

  capabilities: {
    browserName: 'chrome',
    version: '',
    platform: 'ANY',
    specs: [path.join(process.cwd(), 'features', '**', '*.feature')],
    chromeOptions: {
      binary: "/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe",
      args: ['--no-sandbox', 'lang=en-US', '--disable-gpu', '--always-authorize-plugins',
        'user-data-dir=node_modules/.cache/chrome/',
        'disk-cache-dir=node_modules/.cache/chrome/',
        'load-extensions=node_modules/.cache/chrome/',
      ],
    },
    loggingPrefs: {
      driver: process.env.LOG_LEVEL_DRIVER,
      server: process.env.LOG_LEVEL_SERVER,
      browser: process.env.LOG_LEVEL_BROWSER,
      performance: 'ALL',
    },
  },

However, this just results in Chrome simply launching, but not navigating to the actual system under tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions