How to handle Basic Auth through code?

How to handle Basic Auth through code?

Hi Noah,

You can use the below code snippet to handle Basic Auth:

driver.get("https://<username>:<password>@www.example.com/index.html")