Rayrun
← Back to Discord Forum

error: unknown option '--ui'

huckleberryc1972posted in #help-playwright
Open in Discord
huckleberryc1972
huckleberryc1972

I've update my playwright and when I try to start the UUI mode, I get an error

$ npx playwright test --ui
error: unknown option '--ui' FAIL

has anyone else seen this?

This thread is trying to answer question "Why does the 'npx playwright test --ui' command result in an 'unknown option --ui' error?"

6 replies
huckleberryc1972
huckleberryc1972

hmmm....I wonder if I'm missing a setting in my playwright.config.ts file

huckleberryc1972
huckleberryc1972

$ npx playwright test --ui

huckleberryc1972
huckleberryc1972

works one directory up.....

huckleberryc1972
huckleberryc1972

I figured it out. Globally, I had the correct lates version that allowed for the "--ui"

huckleberryc1972
huckleberryc1972

In my repo, it hadn't been updated, so when I activated VS Code, it was grabbing the local version over the global

huckleberryc1972
huckleberryc1972

I update the local abd it worked great

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].