Sign in to follow this  
Followers 0
Smackdog

Automating login from browser prompt

3 posts in this topic

I've been looking into using the IE.au3 features to do some web page automation. I've seen how to auto populate a lot of form fields including usernames and passwords.

What I haven't been able to sort out is how to automate login to a website when the credentials are prompted from the browser. I've been using DebugBar to try to sort out what's what but that doesn't seem to help me for the browser prompt.

Any ideas?

Share this post


Link to post
Share on other sites



Refer to this >>> post <<< for one possible solution.

jfcby


Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB ****

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

#include <IE.au3>

; Internet Explorer does not support user names and passwords in Web site addresses (HTTP or HTTPS URLs)
; http://support.microsoft.com/kb/834489/EN-US/
OnAutoItExitRegister("_Del_IE_RegKey")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iexplore.exe", "REG_DWORD", 0)

$oIE = _IECreate("http://USERNAME:PASSWORD@website.com/protected_dir/index.html", 0, 1, 1)

_IENavigate ($oIE, "http://website.com/protected_dir/different_page.html") ; credentials only necessary for first call

Func _Del_IE_RegKey()
    RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iexplore.exe")
EndFunc   ;==>_Del_IE_RegKey

Edit: This is for BasicAuth (grey PopUp Box asking for credentials), if you're looking for a form related solution refer to jfcbys post above.

Edited by KaFu

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0