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

How to use playwrite to log in as various users in another ntlm domain? #2053

Closed
danpoleary opened this issue Apr 30, 2020 · 4 comments
Closed

Comments

@danpoleary
Copy link

The concept of whitelist does not apply.

I have a Dynamics CRM application that has various teams with roles. We created one test account for each role. Since where we work does not allow development/test workstations in the same domain, how do I navigate the ntlm popup window when in headless mode.

I can navigate the popup using JavaScript when using full browser UI, but nothing seems to work in headless.

Thanks

@arjunattam
Copy link
Contributor

Thanks @danpoleary. I don't have experience with ntlm domains, but have you considered using the popup event to interact with the popup windows? Since you're also using multiple accounts, it might be also worth exploring using separate browser contexts for each account. Feel free to let me know if these help/don't help and if you have any feedback on our docs.

@danpoleary
Copy link
Author

Hi @arjun27, That popup works for browser popups that are HTML, but NTLM is a system popup handled by the browser. I can navigate it using javascript when in full UI mode, but cannot while headless.

It can be done using whitelist and browser profiles if in same domain, but this does not work in different domain.

@yury-s
Copy link
Member

yury-s commented May 14, 2020

@danpoleary how do you handle the system popup in headful mode, can you attach a snippet?

@aslushnikov
Copy link
Contributor

(Closing this as a part of summer cleanup since the discussion stalled here)

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

No branches or pull requests

4 participants