How to Handle Windows Authentication In Selenium With Example?

How to Handle Windows Authentication In Selenium With Example?

In this post, we are going to discuss how you can handle Windows authentication.

package com.selenium.basics;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class WindowsAuthentication 
{
   public static void main(String[] args) 
   {
      WebDriver driver=new FirefoxDriver();
      driver.get("http://softwaretesting:blog@www.engprod-charter.net/");
   }
}

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to softwaretestingo.com@gmail.com, or You can join me on Linkedin.

Leave a Comment