Open carl-parrish opened 4 years ago
Hello, this is a karma launcher, all you need to is just npm install karma-playwright-launcher
and then use it on browsers: ["Chromium", "WebKit", "Firefox"]
and that's all. You can choose from any of the 3 browser.
Cheers.
Could you please provide a example for this karma file?
Trying to install in an Angular environment.
I'm going to preface this by saying I don't know puppeteer well but as it seems like playwright was created to be its successor so I thought I'd just skip directly to using it. Using this guide I've attempted to configure Karma and Protractor just as I would
puppeteer
only substitutingplaywright
wherever I was told to putpuppeteer
instead. This lineDoesn't work however as
playwright
doesn't have anexectablePath()
function itself Instead I tried-- Which seemed like it would do what I wanted. however I'm still getting the following error message. when trying to run
ng test --watch=false
My next attempt was to find a karma plugin for playwright (which brought me here) thank you much for that but to be honest I'm mostly guessing with out to use it. I began with this command
Then I configured my karma.config like so
but when I try to run the test