Bypass the Username and Password for a Website(WebDriver) - Bug Reaper

                  Bug Reaper

Lean about Automation Testing,Selenium WebDriver,RestAssured,Appium,Jenkins,JAVA,API Automation,TestNG,Maven, Rest API, SOAP API,Linux,Maven,Security Testing,Interview Questions

Monday 23 September 2013

Bypass the Username and Password for a Website(WebDriver)

Add the username and password in the Url , Without prompting the  dailogbox it will open the site.

For Example : If you want to access the site HTTP://WWW.testsite.com which will ask the  user credentials to access the site then modify URL as a HTTP://username:Password@ WWW.testsite.com



FirefoxProfile profile = new FirefoxProfile();
driver = new FirefoxDriver(profile);
driver.get("http://username:password@www.test.com/");

No comments:

Post a Comment