Jump to content

AutoIT Windows Authentication with Chrome default popup


Recommended Posts

Hi everybody, 

I'm new in this forum, but I've been using autoit for a while now.

I've a problem about the windows authentication automation on a web application. My script is:

$URL ="[CHROME .EXE PATH]\chrome.exe --incognito --no-first-run --no-default-browser-check --start-fullscreen --ignore- certificate-errors --app=" & $TargetAddress
$ConnectionClientPID = Run($URL)
Sleep(500)
Send($TargetUsername)
Sleep(500)
Send("{TAB}")
Send($TargetPassword, 1)
Sleep(500)
Send("{ENTER}")

But when I run this script, the authentication fails and the message 401 Unauthorized appears (this message appears when you click on CANCEL or you press on ESC, so it is as if the script, after entering the password, "makes" two TABs to click on Cancel). But I think I wrote the right TAB and ENTER. What is wrong with this? 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...