IE Authetication

109 views
Skip to first unread message

meena ramasubramani

unread,
Sep 19, 2013, 7:22:08 PM9/19/13
to webd...@googlegroups.com
How to do automatic authentication with ie driver? The server I am testing is showing up an authetication dialog everytime and I need to login as different user for different tests . I tried http://username:password@host, no use. Currently, I am using Robot class to type the username and password which is messy. I am using java as programming language . Is there a neat solution for this?

darrell

unread,
Sep 23, 2013, 8:59:28 PM9/23/13
to webd...@googlegroups.com
One of the problems with IE since version 7 is they no longer support putting the username:password in the URL. The easiest solution is to turn this feature back on.

If you are on a 32-bit computer running 32-bit IE or you are on a 64-bit computer running 64-bit IE then you need to go into regedit.exe and do the following:

  • Find HKLM\SOFTWARE\Microsoft\Internet Explorer\MAIN\FEATURECONTROL\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
  • Add the DWORD iexplore.exe=0
This will allow you to use http://username:password@host. If you are using 32-bit IE on a 64-bit Windows you have to change a slightly different registry. It will be:

  • HKLM\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\MAIN\FEATURECONTROL\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
Essentially, everything under SOFTWARE\WOW6432Node is a mirror of SOFTWARE but it applies to 32-bit programs on a 64-bit Windows.
Reply all
Reply to author
Forward
0 new messages