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?

mrk2
  • 797
  • 3
  • 9
  • 20
  • have you had a look at [this](http://stackoverflow.com/questions/1268689/j2se-proxy-authentication)? – ddavison Apr 24 '14 at 15:56

1 Answers1

1

You could try URL encoding for same:

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

//%5C is url encode of \

Petter Friberg
  • 21,252
  • 9
  • 60
  • 109
Abhishek Yadav
  • 459
  • 5
  • 16
  • 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 – mrk2 Apr 25 '14 at 06:28