1

Directly typing the below url in the browser, it works,

http://username:p%[email protected]:80/yyyy

But, when i use the same url, for selenium webdriver tests, it is connecting to

http://examplesite.com/yyyy

and asking for the HTTP authentication. Do i need to change any settings in the chrome browser, or tweak the default profile?

10
  • What are you trying to achieve by doing this ? Are you trying to login? Commented Nov 7, 2014 at 10:52
  • i have mentioned clearly in question about http url authentication. Commented Nov 7, 2014 at 10:54
  • And why exactly you are using selenium to do this ? It is a browser testing tool. Commented Nov 7, 2014 at 10:55
  • I'm gonna automate the website, in order to do that i need to get that from the server, and the server requires authentication through HTTP protocol. Commented Nov 7, 2014 at 11:00
  • 1
    That is the reason why I asked you that question in the first place, what do you intend to do after login, because testing the login itself using selenium is not a good approach.You can check here -stackoverflow.com/questions/3021602/… this does not work in chrome.What page does the login brings?Does it come like a Javascript popup? Commented Nov 7, 2014 at 11:04

1 Answer 1

0

That strategy did not work for me though. However I circumvented it by using AutoIt akin to this https://stackoverflow.com/a/19374325/5059472

Plain old npm install of autoit is not enough. We need to add python to our path, as well as install visual studio community 2015 with visual c++ selected as an additional option

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.