I'm still new to automation and what i want to know if this method is secure in bypassing basic authentication, considering we are using https. By browsing i couldn't find any better practices of this case but i'm still not sure that it's secure and the best way:
driver.get("https://user:[email protected]");