microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
67.32k stars 3.71k forks source link

[Bug]: Slowness issue in application navigations when used http_credentials in browser context for SSO Authentication #33786

Open surbhiD opened 4 days ago

surbhiD commented 4 days ago

Version

1.49.0

Steps to reproduce

self._browser = BrowserType.create_browser(browser_type) self._context = self._browser.new_context( http_credentials = {'username': username,'password': password} if username and password else None, no_viewport = True) self._page = self._context.new_page() 1.I am launching my browser like this and authenticating in azure sso login . 2.I am able to login but after that on every page navigation browser is taking too much time to load the page.This is causing my application to behave very slow. Note : however if i use cookies in place of using http_credentials its working very fast.Also using Http_credential based login is the only solution for me as

Expected behavior

The application should behave as usual as its behaving when interacting manual.the page loading should not take unusual time

Actual behavior

The application takes too much time on every page navigation

Additional context

Works fine on firefox nightly build. Issue is there for chrome and edge

Environment

- Operating System: Windows 10 enterprise
- CPU: [arm64]
- Browser: [All, Chromium, Firefox, WebKit]
- Python Version: [3.11.4]
mxschmitt commented 4 days ago

We need a self-contained reproduction in order to look into this issue.