Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Headless remote debugging #4

Closed
albertogasparin opened this issue Jul 11, 2017 · 2 comments
Closed

Headless remote debugging #4

albertogasparin opened this issue Jul 11, 2017 · 2 comments

Comments

@albertogasparin
Copy link

I've tried to set the --remote-debugging-port arg to easily debug headless Chrome, but it looks like tests are not run with that option (without it they run just fine).

Config:

  // ...
  capabilities: [
    {
      browserName: 'chrome',
      maxInstances: 3,
      chromeOptions: {
        args: [
          '--headless',
          '--disable-gpu',
          '--window-size=1280,750',
          '--remote-debugging-port=9222',
        ],
        binary: '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary',
      },
    },
  ],
  port: '9515',
  path: '/',
  services: ['chromedriver'],
  // ...

I'm using: wdio@4.8.0, wdio-chromedriver-service@0.1.0 and Chrome Canary 61.0.3153.0 (earlier versions have issues on OSX).
Do you know how see/interact with Chrome headless, combining webdriverio browser.debug()?

@atti187
Copy link
Collaborator

atti187 commented Aug 14, 2017

Sorry, been away for a while and missed this. And no, haven't looked into it...

@christian-bromann
Copy link
Contributor

This should be possible with latest Chromedriver and Chrome. Please let me know if it isn't and I can re-open.

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

No branches or pull requests

3 participants