Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright Helper applies basicAuth config only to first instance of browser context #3035

Closed
nikocanvacom opened this issue Sep 9, 2021 · 0 comments · Fixed by #3036
Closed

Comments

@nikocanvacom
Copy link
Contributor

nikocanvacom commented Sep 9, 2021

What are you trying to achieve?

I want the basic authentication to be set after each browser restart and do not want to see a deprecation warning

warning: method \|context.setHTTPCredentials()\| is deprecated. Instead of changing credentials, create another browser context with new credentials.

What do you get instead?

Provide console output if related. Use --verbose mode for more details.

# paste output here

Provide test source code if related

// paste test

Details

  • CodeceptJS version:
  • NodeJS Version:
  • Operating System:
  • puppeteer || webdriverio || protractor || testcafe version (if related)
  • Configuration file:
  helpers: {
    Playwright: {
      url: 'http://my.url', 
      restart: true,
      basicAuth: {
        username: process.env.USERNAME_HOST,
        password: process.env.PASSWORD_HOST,
      },
    },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant