Jump to content
CC_Mu

IE can not log in, $_STATUS ClientDisconnected & $_IESTATUS_NoMatch

Recommended Posts

CC_Mu
Posted (edited)

Hey All, 

I am trying to open a company internal browser, fill in id and password, and log in, but failed due to $_STATUS ClientDisconnected & $_IESTATUS_NoMatch. 

Below is the page source :

<!DOCTYPE HTML>
<html dir="ltr" lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Language" content="en"><noscript>To use Oracle BIEE, please enable javascript in your browser.</noscript><script type="text/javascript" src="/analytics/res/v-*Yhu2HGGRtk/b_mozilla/browserdom.js"></script><script type="text/javascript">try{saw.doFrameBust(1);function sawC2U(s){return "/analytics/saw.dll?__xyz__".replace("__xyz__",s);}function sawP2U(s){return "/analytics/saw.dll/__xyz__".replace("__xyz__",s);}function isThisTheBayBridgeOrGolden() { return false;}var sawEmptyHtm="/analytics/res/v-*Yhu2HGGRtk/empty.htm";var obips_fmapId="UK*GcQ";var obips_scid="AMvkK-vccX3P7zjDD7aL";var obips_maxStylesheets=100;var g_LocaleInfo={sDateSeparator:"/",sTimeSeparator:":",sDecimalPoint:".",sThousandsSeparator:",",sAM:"AM",sPM:"PM",b24:false,sDateOrder:"mdy",nFDOW:6,aMonthAbbreviations:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aNominitiveMonthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],aDayAbbreviations:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],aDayNames:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],nYearPadding:4,nMonthPadding:2,nDayPadding:2,nHourPadding:2,sListSeparator:",",sNegativeNumberTemplate:"-#",sCurrencySymbol:"$"};var obips_seeded_res = [{p:"master/styleproperties.res",v:{exprs:{"activeDataColor":"Dark","dialogHelpPosition":"header","dialogRoundCornerImgsRequired":"false","shuttleButtonSpace":"true","shuttleButtonLabel":"false","shuttleTableCellSpace":"6","shuttleDropdownWidth":"7px","shuttleDropdownHeight":"4px","renderPageTitleAsTab":"false","menubarSeparator":"false","pageShadowBackground":"false","headerRightBorder":"true","headerHelpDropDownImgSrc":"masterDropDownButtonDarkThemeEnabled","headerBrandingGradientImgIsRequired":"false","pageBorderBottomRequired":"false","pageContentOuterDivHeightOffset":"12","tabBarStartCellWidth":"5px","tabBarStartImgRequired":"false","tabBarTabStartImgRequired":"false","tabBarTabEndImgRequired":"false","tabBarBottomBorderBlockerRequired":"true","bihRoundCorner":"false","adminBannerBackground":"false","breadCrumbHeight":"15","accordionRoundCornerImgsRequired":"false","tableSupportsNonOverlappingHorizontalScrollbar":"true"}}}];}catch(e){if (window.console && console.error) console.error('Header script error:' + e.message);}</script><link href="/analytics/res/v-*Yhu2HGGRtk/s_Alta/master/custom.css" type="text/css" rel="stylesheet"><link href="/analytics/res/v-*Yhu2HGGRtk/sk_Skyros/b_mozilla_4/htmlglobals.css" type="text/css" rel="stylesheet"><noscript><link href="/analytics/res/v-*Yhu2HGGRtk/sk_blafp/b_mozilla_4/noscript.css" type="text/css" rel="stylesheet"></noscript>
<title>Oracle Business Intelligence Sign In</title>



<link rel="Stylesheet" href="/analytics/res/v-*Yhu2HGGRtk/s_blafp/uicomponents/blafplus.css" type="text/css">

<link rel="Stylesheet" href="/analytics/res/v-*Yhu2HGGRtk/sk_Alta/login/login.css" type="text/css">

<link rel="Stylesheet" href="/analytics/res/v-*Yhu2HGGRtk/s_Alta/generated/commonuicomponents_1.css" type="text/css">
</head>
<body class="masterOBIEE">

<a id="idSkipContentLink" class="SkipToContentLink" href="javascript:skipToContent()" onfocus="javascript:this.style.top=&#39;2px&#39;" onblur="javascript:this.style.top=&#39;-999px&#39;">Skip to content</a>


<table id="branding" class="masterBrandingArea branding" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td id="logoCell" class="logo" valign="middle"><img alt="12.2.1.0.0" title="12.2.1.0.0" src="/analytics/res/v-*Yhu2HGGRtk/s_Alta/master/oracle_logo.png" border="0"></td><td class="topbody bottomborder" valign="top" width="*" align="left"><span id="appName" style="position: absolute; top: 2px; left: 120px;" class="masterBrandingAreaBrandName appname">Business Intelligence</span></td><td align="right" class="padding-right12 padding-left12 topbody bottomborder" nowrap="nowrap"><div align="right"><img src="/analytics/res/v-*Yhu2HGGRtk/sk_blafp/login/spacer.gif" alt="X" width="11" height="1"><a id="helpLink" class="pagelink" href="/analytics/olh/l_en/biee0361.htm">Help</a></div></td></tr></table>
<table id="content" class="stylenormal" width="100%" border="0" cellpadding="0" cellspacing="10"><tr><td id="content-cell">

<div align="center" class="centerDiv">
<table width="180" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td class="lefttop"></td>
      <td class="topmiddle" width="100%" height="12"></td>
      <td class="righttop"></td>
   </tr>

   <tr>
      <td class="leftmiddle"></td>
      <td class="boxcontent" width="100">

            <form id="logonForm" method="post" action="saw.dll?bieehome" onsubmit="return onLogonFormSubmit()">

            <table width="100%" cellpadding="0" cellspacing="0">
               <tr>
                  <td class="loginlabel" nowrap="nowrap">Sign In</td>
               </tr>
               <tr>
                  <td class="opttext" nowrap="nowrap">Enter your user id and password.<br><br></td>
               </tr>
               
               <tr>
                  <td class="stylenormal" nowrap="nowrap">
                     <div class="margin-top3"><label for="sawlogonuser">User ID</label><br></div>
                     <input id="sawlogonuser" class="margin-top5" type="text" name="NQUser" value="" size="50" style="width: 200px;">
                     <div class="margin-top5"><label for="sawlogonpwd">Password</label><br></div>
                     <input id="sawlogonpwd" class="margin-top5" type="password" name="NQPassword" size="50" style="width: 200px;" autocomplete="off">
                     
                     </input>
                     
                     <input type="hidden" name="Locale" value="">
                     
                     
                     
                     <br><br>
                     <img src="/analytics/res/v-*Yhu2HGGRtk/sk_blafp/login/spacer.gif" alt="X" width="5" height="10">
                        
                        <input id="idlogon" type="submit" class="button" style="width: 120px;" onmouseover="NQWSetHasClassName(document.getElementById(&#39;idlogon&#39;), &#39;buttonOver&#39;, true)" onmouseout="NQWSetHasClassName(document.getElementById(&#39;idlogon&#39;), &#39;buttonOver&#39;)" value="Sign In">
                        <br><br>
                         <div class="margin-top3">
                            <input id="accessMode" type="checkbox" name="accessMode" style="width: 15px;">
                            <label for="sawaccesibilitymode">Accessibility Mode</label>                            
                        </div> 
                        <br>
                        
                        
                        
                        <hr></hr>
                        <label for="selectlanguage"><span class="offScreenVPATLabel">Select a Language</span></label>
                        <img src="/analytics/res/v-*Yhu2HGGRtk/sk_blafp/login/world_36x20.png" style="visibility: visible;" class="defaultHidden" width="36" align="bottom" height="20" alt="Select a Language" title="Select a Language">&nbsp;
                              <select id="selectlanguage" size="1" style="visibility: visible;" class="defaultHidden"  onchange="return onLangChange(false)">
                                 <option value="ar" locale="ar-ae">عربية - Arabic</option><option value="cs" locale="cs-cz">cesky</option><option value="da" locale="da-dk">dansk</option><option value="de" locale="de-de">Deutsch</option><option value="el" locale="el-gr">ελληνικά - ‎elleniká‎</option><option value="en" selected locale="en-us">English</option><option value="es" locale="es-es">Español</option><option value="fi" locale="fi-fi">suomi</option><option value="fr" locale="fr-fr">français</option><option value="fr-CA" locale="fr-ca">français (Canada)</option><option value="he" locale="he-il">עברית - Hebrew</option><option value="hr" locale="hr-hr">hrvatski</option><option value="hu" locale="hu-hu">Magyar</option><option value="it" locale="it-it">italiano</option><option value="ja" locale="ja-jp">日本語 - ‎nihongo‎</option><option value="ko" locale="ko-kr">한국어 - ‎hangul‎</option><option value="nl" locale="nl-nl">Nederlands</option><option value="no" locale="no-no">norsk</option><option value="pl" locale="pl-pl">polski</option><option value="pt" locale="pt-pt">Português</option><option value="pt-BR" locale="pt-br">Português (Brasil)</option><option value="ro" locale="ro-ro">Românã</option><option value="ru" locale="ru-ru">Русский - ‎russkij‎</option><option value="sk" locale="sk-sk">Slovenčina</option><option value="sv" locale="sv-se">svenska</option><option value="th" locale="th-th">ไทย</option><option value="tr" locale="tr-tr">Türkçe</option><option value="zh-CN" locale="zh-cn">中文 - ‎Chinese‎</option><option value="zh-TW" locale="zh-tw">中文繁體 - ‎Chinese (Traditional)</option>
                              </select>
                           
                        
                     
                     </td>
                  </tr>
               
            </table>
            </form>
         </td>
      <td class="rightmiddle"></td>
   </tr>
   <tr>
      <td class="leftbottom"></td>
      <td class="bottommiddle" width="100%" height="12"></td>
      <td class="rightbottom"></td>
   </tr>
</table>
</div>

</td></tr></table>
<table id="footer" class="footer" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><br><br><br><br><br><br><br><br></tr><tr><td id="copyRight" class="Copyright">Copyright © 1997, 2015, Oracle and/or its affiliates. All rights reserved.</td><td class="padding-right12 padding-left12"><div align="right"><p><a class="pagelink" id="aboutProduct" href="/analytics/saw.dll?aboutPage">About Product</a></p></div></td></tr></table>


<script type="text/javascript" src="/analytics/res/v-*Yhu2HGGRtk/b_mozilla/common.js"></script>
<script type="text/javascript" src="/analytics/res/v-*Yhu2HGGRtk/b_mozilla/common/login.js"></script>



<script type="text/javascript">var additionalArgs = {'startPage':'1','icharset':'utf-8'};window.onload = onLogonPageLoad;var enterUserIdAndpassword = 'Enter your user id and password.';</script>
<iframe style="display:none;" title="hidden iframe" src="/analytics/saw.dll?CacheStaticFiles"></iframe>
</body>
</html>

 

My 1st trial code is 

#include <IE.au3>

Global $oIE = _IECreate ("https://insightbi.xxx.xxxxxx.com/analytics")

; Step 1:  Log in 
Call ("signin")

Func signin ()
Local $myuser = "id"
Local $mypw = "123456"

Local $username = _IEGetObjById ($oIE, "sawlogonuser")
Local $password = _IEGetObjById ($oIE, "sawlogonpwd")
Local $button = _IEGetObjById ($oIE, "idlogon")


_IEFormElementSetValue ($username, $myuser)
_IEFormElementSetValue ($password, $mypw)

_IEAction($button, "click")
;;_IELoadWait($oIE)
EndFunc

and give me this error msg:

--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147023179, Browser has been deleted prior to operation.)
--> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEFormElementSetValue, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementSetValue, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
+>17:59:15 AutoIt3.exe ended.rc:0

I search this forum, and believe it is because of the _$IEWait, so I revised the code to make _$IEWait false as below:

Global $oIE = _IECreate ("https://insightbi.xxx.xxxxxx.com/analytics",1,1,0,1)

and still get the error msg as below:

--> IE.au3 T3.0-2 Warning from function _IEAttach, $_IESTATUS_NoMatch
"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1900) : ==> The requested action with this object has failed.:
If IsObj($oObject.document.getElementById($sID)) Then
If IsObj($oObject^ ERROR
->18:01:17 AutoIt3.exe ended.rc:1
+>18:01:17 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 2.81

 

 

Any idea about this? Thank you so much for reading my post!

Edited by CC_Mu

Share this post


Link to post
Share on other sites
Juvigy

Does IE create a new window with the page :

https://insightbi.xxx.xxxxxx.com/analytics

it looks like the problem comes from this line:

Global $oIE = _IECreate ("https://insightbi.xxx.xxxxxx.com/analytics")

Share this post


Link to post
Share on other sites
CC_Mu

Hey Juvigy,

 

IE can create a new window with this page, but it did nothing after that.

 

I guess that is also the reason, but can not find a good way to solve it

Share this post


Link to post
Share on other sites
Juvigy

Is the page 

https://insightbi.xxx.xxxxxx.com/analytics

redirecting or executing some java or scripts right after opening it?

Share this post


Link to post
Share on other sites
CC_Mu
On 4/12/2018 at 10:18 AM, Danp2 said:

Have you tried using _IEAttach to reestablish the object reference?

I read through the function, still can not understand how to use it, do you mind here?

Share this post


Link to post
Share on other sites
CC_Mu
On 4/13/2018 at 2:52 AM, Juvigy said:

Is the page 

https://insightbi.xxx.xxxxxx.com/analytics

redirecting or executing some java or scripts right after opening it?

I believe it did not redirecting after opening it. Or how can i make sure about it? I did not see the weblink changed after opening it

Share this post


Link to post
Share on other sites
Danp2
22 minutes ago, CC_Mu said:

I read through the function, still can not understand how to use it, do you mind here?

It's similar to _IECreate, so instead of this --

$oIE = _IECreate ("https://insightbi.xxx.xxxxxx.com/analytics")

You would do this --

$oIE = _IEAttach ("https://insightbi.xxx.xxxxxx.com/analytics", "url")

P.S. Take a look at the examples in the help file. Run them and see how they work. Then you will have a better understanding of this function.

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

×