LambdaTest/playwright-sample

๐Ÿ’€ browserType.connect: Unauthorized, either Username or AccessKey is invalid.

Closed this issue ยท 1 comments

Steps:

  1. clone
  2. npm install
  3. windows system environmental variable set for username and access key
    Got error during running the command=> node playwright-single.js
    error: browserType.connect: Unauthorized, either Username or AccessKey is invalid.

tried installing dotenv package and storing username and keys in .env file
still same error. ๐Ÿ’€

@mystcuro , you can try first expotying the environment variables in the terminal and then use the same terminal session to run script.
For usinggg dotenv NPM library, make sure you are loading the dotenv library before the test starts using

require('dotenv').config()