Tester1210 Posted February 13, 2020 Share Posted February 13, 2020 Hi , Am trying to pass the username and password into login page but unfortunately i had got output error as below. --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.) IE.au3" (1876) : ==> The requested action with this object has failed.: If IsObj($oObject.document.GetElementsByName($sName).item($iIndex)) Then If IsObj($oObject^ ERROR Code: #include <IE.au3> Global $oIE=_IECreate("https://gate.opentext.com/Citrix/StoreFront-OTWeb/",0,1,0) _IELoadWait($oIE) Local $username = _IEGetObjByName ($oIE, "login") Local $password = _IEGetObjByName ($oIE, "passwd") Local $auth = _IEGetObjByName ($oIE, "passwd1") Local $Button =_IEGetObjByName ($oIE, "Logon") _IEFormElementSetValue ($username,"usernmae") _IEFormElementSetValue ($password,"password") _IEFormElementSetValue ($auth, "VIPCode") _IEAction ($Button, "Click") html code: class="logon-spacer logon-large logon-logo-container"></div> <div class="logon-spacer-DefaultTheme"></div> <div class="form-content"> <div class="form-container"><form class="form insertPoint credentialform" action="/nf/auth/doAuthentication.do" method="POST"> <div class="field CredentialTypenone"><div class="left"><h1><span>Please use GXSONLINE credentials</span></h1></div></div> <div class="field CredentialTypeusername"><div class="left"><label class="label plain" for="login">Username:</label></div> <div class="right"><input name="login" id="login" spellcheck="false" type="text" autocomplete="off"></div></div> <div class="field CredentialTypepassword"><div class="left"><label class="label plain" for="passwd">Password:</label></div> <div class="right"><input name="passwd" id="passwd" spellcheck="false" type="password" autocomplete="off"></div></div> <div class="field CredentialTypepassword"><div class="right"><input name="passwd1" id="passwd1" type="hidden"></div></div> <div class="field CredentialTypenone"><div class="left"><label class="label plain" for="auth">Auth Method:</label></div> <div class="right"><select name="auth" id="auth"><option selected="selected" value="push">Symantec Push</option> <option value="VIPCode">Symantec Code</option></select></div></div><div class="field CredentialTypesavecredentials" style="display: none;"> <div class="right checkbox"><input name="savecredentials" id="savecredentials" type="checkbox" value="savecredentials"> <label class="label plain" for="savecredentials">dualauth_new_remember_my_credentials</label><label class="informationAssistive"><img title="dualauth_new_" alt="dualauth_new_" src="receiver/images/1x/ico_info.png"></label><div class="informationAssistiveTooltip"><p>dualauth_new_</p></div></div></div><div class="field buttonsrow"><div class="buttonscontainer right"><a class="button forms-authentication-button last-child default" id="Logon" href="#">Log On</a></div><div class="spinner" style="visibility: hidden;"><img alt="" src="receiver/images/common/authspinner.gif"></div></div><div class="field CredentialTypepasswordreset_link"><div class="right"><div><a href="https://confluence.opentext.com/display/Citrix/Reset+GXSONLINE+password">Forgotten Password?</a></div></div></div><div class="field CredentialTypewiki_link"><div class="right"><div>Need help? Please consult the <a href="https://confluence.opentext.com/pages/viewpage.action?pageId=258605418">Citrix Wiki</a></div></div></div><div class="spacer"></div></form></div> <div class="explicit-auth-progress" style="display: none;"> <h1 class="_ctxstxt_ResumingLogon main-text">Resuming logon, please wait.</h1> <div class="spinner authentication-spinner"></div> </div> <p class="back-to-choices" style="display: none;"><a class="authentication-link _ctxstxt_UseAnotherLogonOption" href="#">Use another logon option</a></p> </div> <div class="logon-spacer"></div> </div> can anyone help me..! Link to comment Share on other sites More sharing options...
Danp2 Posted February 13, 2020 Share Posted February 13, 2020 You didn't indicate where the error was occurring in your script, so I'm making a wild guess. Have you tried reattaching to IE like this? _IECreate("https://gate.opentext.com/Citrix/StoreFront-OTWeb/",0,1,0) Sleep(2000) $oIE = _IEAttach("gate.opentext.com", "url") _IELoadWait($oIE) Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tester1210 Posted February 14, 2020 Author Share Posted February 14, 2020 complete error for above code: >"C:\Users\Tester\Downloads\autoit-v3\install\SciTe\..\autoit3.exe" /ErrorStdOut "C:\Users\niranjan\Desktop\Test.au3" --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147023174, Browser has been deleted prior to operation.) "C:\Users\Tester\Downloads\autoit-v3\install\Include\IE.au3" (1876) : ==> The requested action with this object has failed.: If IsObj($oObject.document.GetElementsByName($sName).item($iIndex)) Then If IsObj($oObject^ ERROR >Exit code: 1 Time: 1.023 Link to comment Share on other sites More sharing options...
Danp2 Posted February 14, 2020 Share Posted February 14, 2020 Can't test this because that site doesn't resolve for me. Have you tried increasing the length of the Sleep? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tester1210 Posted February 14, 2020 Author Share Posted February 14, 2020 Even after increasing the sleep length we have got the same error. Link to comment Share on other sites More sharing options...
Danp2 Posted February 14, 2020 Share Posted February 14, 2020 You could try eliminating the _IELoadWait. Beyond that, not sure how else to assist since we can't duplicate the problem. P.S. You could try switching to a different browser and use the Webdriver UDF Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now