0

I am using following code to pass authorization:

WebDriver driver = new FirefoxDriver();
driver.get(http://domainName\\username:password@url);

But didn't succeed cause username contains:

domainName\username

I think the problem is in this? any other ways to pass authorization?

1
  • have you had a look at this? Commented Apr 24, 2014 at 15:56

1 Answer 1

1

You could try URL encoding for same:

driver.get(http://domainName%5Cusername:password@url);

//%5C is url encode of \

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

1 Comment

well, now I don't get the error message, but still doesn't work for me, I guess just doesn't work with every site

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.