Hello all, <#1054804523652231198> I'm pretty beginner to Playwright and used codegen to record the UI flow.
Here is the problem statement: my web application is SSO enabled and when we try to login via chrome normal mode it'll take the system credentials and login directly but if we use Chrome incognito, we need to enter the username and password and then user logs in. But with playwright, I can see that when we try to access the link, it is directing to the logged session directly and it's not even asking for the credentials. I've used clear cookies and user agent but it's still the same. <#1054804523652231198> Can anyone guide me please.
This thread is trying to answer question "Why is Playwright Chromium automation logging in directly without asking for credentials despite using incognito mode and clearing cookies?"
Dear @skorp32, thank you for your question. No, I am not using the persistent context in my tests. I I use the opened playwright incognito Chrome Browser exact the same way like the incognito one on my machine - but the behavior at the login to my SUT differs in the way @golden_peacock_91854 described in his original post.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].