9
How to override basic authentication in selenium2 chrome driver?
I am facing an issue in my project where chrome "Authentication required" popup is coming which is blocking webdriver to continue navigation.
Please find the attached screenshot for the same.
I am using following code to instantiate chrome driver,
private WebDriver driver;
@Override
protected void setUp() throws Exception {
super.setUp();
System.setProperty("webdriver.chrome.driver", "C:/Selenium/chromedriver.exe");
driver = new ChromeDriver();
}
@Override
protected void tearDown() throws Exception {
// TODO Auto-generated method stub
super.tearDown();
}
Could you please help -
Thanks,