Sometimes, Selenium C# launches chrome as well as the website, but is unable to interact with it.

On close inspection, I noticed that it was because chrome was not in focus and was not loading the UI.

As soon as I focused the chrome, I would see a white screen for half a second, and then UI appeared. And as soon as UI appeared, the test started running well.

I feel like chrome can not get enough system resources without the background. Any help would be appreciated. I never faced the issue in selenium-python.

Website is - web.whatsapp.com