Features

Basic HTTP Authentication

If you are testing a website that is protected with Basic HTTP Authentication, then your automated test might get stuck when opening the URL.

You can pass the username and password in the URL, see the example below:

Copy code
driver.navigate.to "https://<username>:<password>@www.example.com/password.html"
Copy code
driver.get("https://<username>:<password>@www.example.com/password.html")
Copy code
$web_driver->get("https://<username>:<password>@www.example.com/password.html");
Copy code
driver.get("https://<username>:<password>@www.example.com/password.html")
Copy code
driver.get('https://<username>:<password>@www.example.com/password.html').then(function(){
});
Copy code
driver.Navigate().GoToUrl("https://<username>:<password>@www.example.com/password.html");