0

I tried the following way to do the basic http authentication but it did not worked for me.

 FirefoxProfile profile = new FirefoxProfile();
 profile.setPreference("network.http.phishy-userpass-length", 255);
 driver = new FirefoxDriver(profile);

After this I passed the user name and password with the below approach.

 driver.get("https://username:password@<<URL>>");

If there is any special character in the password how to pass it in the URL.

Is there any generic solution which will solve this problem on all the browsers.

1

1 Answer 1

1

No, as per knowledge i don't think there a generic way for all browsers. Now for your problem, try mentioned below.

Since your an HTTP proxy, please verify if you have enabled "browser.safebrowsing.malware.enabled" option to True.

To do so, type about:config in Firefox. Search for browser.safebrowsing.malware.enabled, double click it.

See if that helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.