abhinaba-ghosh / playwright-lighthouse

:performing_arts:: Playwright Lighthouse Audit
https://www.npmjs.com/package/playwright-lighthouse
MIT License
250 stars 28 forks source link

getting connecttion refused when using playwright-lighthouse with url #42

Open lakshbhutani1 opened 1 year ago

lakshbhutani1 commented 1 year ago

getting connecttion refused when using playwright-lighthouse with ur in playAudit({url: 'someAuthenticatedurl'}) Error: connect ECONNREFUSED 127.0.0.1:53938

andrew-hossack commented 1 year ago

Make sure you are setting a debugging port in playwright config under defineConfig:

use: {
    /* Start browser in debug port mode; allows lighthouse access to the browser port */
    launchOptions: {
        args: ['--remote-debugging-port=9222'],
    },
},