Jump to content

Swatcat

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Swatcat

  1. Hi All, So I need Help. I am developing code to handle Authentication Popup For IE. The issue I am facing is that this code runs smoothly on unlock desktop but fails on VM machine and when machine is locked. So could you suggest what should I do to make it work. My automation Tool is a Selenium Based tool and is able to launch the script, but the AutoIT Script is unable to pass the username and password on the authentication popup. Below is the code. I am passing the values through Command line arguments. #include <Array.au3> Local $browser, $BAuthMode, $BWinAuthUserName, $BWinAuthPassword, $BChromeClaimsURL, $BChromePolicyURL, $BIEPolicyURL, $BIEClaimsURL; $browser = $CMDLine[1] $BAuthMode = $CMDLine[2] $BWinAuthUserName = $CMDLine[3] $BWinAuthPassword = $CMDLine[4] $BChromeClaimsURL = "" $BChromePolicyURL = "" $BIEURL = "" ;$BIEClaimsURL = "" If $browser = "chrome" And $BAuthMode = "m" Then If WinExists($BChromeClaimsURL,"") Then WinWaitActive($BChromeClaimsURL) ; set control to the window for proxy authentication Sleep(500) Send("{ESCAPE}") ElseIf WinExists($BChromePolicyURL,"") Then WinWaitActive($BChromePolicyURL) ; set control to the window for proxy authentication Sleep(500) Send("{ESCAPE}") EndIf ElseIf $browser = "ie" And $BAuthMode = "m" Then If WinExists($BIEPolicyURL,"") Then WinExists($BIEPolicyURL) ; set control to the window for proxy authentication Sleep(500) Send("{ESCAPE}") ElseIf WinExists($BIEClaimsURL,"") Then WinWaitActive($BIEClaimsURL) ; set control to the window for proxy authentication Sleep(500) Send("{ESCAPE}") EndIf ElseIf $browser = "ie" And $BAuthMode = "w" Then WinWaitActive($BIEURL,"","20") if(WinExists($BIEURL)) Then Sleep(500) Send($BWinAuthUserName & "{TAB}") ; send username and press TAB Sleep(100) Send($BWinAuthPassword & "{ENTER}") ; send the password and press enter Sleep(100) EndIf ElseIf $browser = "chrome" And $BAuthMode = "w" Then If WinExists($BChromeClaimsURL,"") Then WinWaitActive($BChromeClaimsURL) ; set control to the window for proxy authentication Sleep(500) Send($BWinAuthUserName & "{TAB}") ; send username and press TAB Send($BWinAuthPassword & "{ENTER}") ; send the password and press enter ElseIf WinExists($BChromePolicyURL,"") Then WinWaitActive($BChromePolicyURL) ; set control to the window for proxy authentication Sleep(500) Send($BWinAuthUserName & "{TAB}") ; send username and press TAB Send($BWinAuthPassword & "{ENTER}") ; send the password and press enter EndIf EndIf WinSetState("[ACTIVE]", "", @SW_RESTORE) Sleep(500) WinSetState("[ACTIVE]", "", @SW_MAXIMIZE)
  2. Hi , I need to automate windows popuphandler through Chrome. I have developed below code , it inputs username and password but popup again appears and Login doesn't take place. Also, I need to execute the below code in Vm ware. Please could you all help me out as to where the code is wrong and what all enhancement need to be implemented. <> ShellExecute("chrome.exe", "URL","","") WinWait("URL","","10") ; this is the name of the window, according to AUTOIT v3 window info If WinExists("URL","") Then WinActivate("URL") ; set control to the window for proxy authentication Send("usr{TAB}") ; send username and press TAB WinActivate("URL") ; again set control to our window, in case that we have clicked somewhere else Send("pwd{ENTER}") ; send the password and press enter EndIf
  3. surely but for now cud u help me this code
  4. Hi, I need to develop a code through AutoIT for an POPup on Chrome browser. So far have written also for same but it inputs username and password on the UI but on Clicking LogIn it vanishes and Login doesn't Take place. Unable to Identify where is the Bug as I am a Novice for working on AUto IT. Need a Resolution Urgently. Attaching screenshot for same.
×
×
  • Create New...