Closed priyanshu92 closed 1 year ago
Looks like it is caused by one of the policies that you have on your machine, InternetExplorerIntegrationCloudSiteList
looks most relevant to the error message you get in the logs. Can you try launching the browser without playwright and see if you get the same error?
Something like this:
C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --no-sandbox --user-data-dir=new_profile_dir
See also this page, there is not much we can do if the browser cannot start in incognito mode with the system policies.
Can you try launching the browser without playwright and see if you get the same error?
I don't see the error but getting the below popup
So this is likely BrowserSignin policy which prevents Playwright from launching the browser without signing in. Try changing the value (contact your admin?) to remove the requirement on the machine where you want to run the tests, playwright cannot override such policy settings.
So this is likely BrowserSignin policy which prevents Playwright from launching the browser without signing in. Try changing the value (contact your admin?) to remove the requirement on the machine where you want to run the tests, playwright cannot override such policy settings.
Can you suggest what exact value we need to change...!?
JFYI quick thing you can do is put some code in place that changes HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\BrowserSignin
to 1
if it is currently set to 2
I, personally, wrapped this in a #if DEBUG
statement and a try/catch{}
so it won't except out.
System info
Source code
Expected
MS Edge should be launched.
Actual
Browser fails to launch with the following exception:
Logs with
DEBUG: pw:browser,pw:protocol,pw:api
Edge Policies
Things tried
msedge-dev
channelOther browsers are working fine.