Jump to content

AnselRoe

Members
  • Posts

    5
  • Joined

  • Last visited

About AnselRoe

  • Birthday 09/02/1953

Profile Information

  • Location
    Flint, MI USA
  • Interests
    Languages; natural, artificial, spoken, written, ancient or not
    N.Tesla
    The Three Stooges (Curly or Shemp)
    All things SciFi or SyFy
    Natural & Artificial Intelligence or the lack thereof

AnselRoe's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I am having exactly the same issue. The only solution that I see is to move the 'File Download' and 'Save As' dialog windows off the screen boundaries. This should keep it from appearing on the visible window area. But I am not sure what command(s) would effect this. Windows is setting the screen position of the 'File Download' and 'Save As' dialog windows. This may entail a reg patch to change the default window position and a re-Patch to return to defaults. Any help in this matter will be appreciated. Thanks.
  2. I have used _IEAction() successfully, even previously in this same script in similar situations. I am trying but failing to get the _IEAction($o_object,"click") to work in the following situation: Within a FRAMESET with two frames, the ID="Upload" object is in the first frame. relevant AutoIT code : $oFrameSetTag = _IETagNameGetCollection($oIE,"FRAMESET",0) $oFrame = _IEFrameGetCollection($oFrameSetTag,0) $oForm = _IEFormGetObjByName($oFrame,"aspnetForm") $oDiv = _IEGetObjById($oForm, "ApplicationBody") $oDiv2 = _IEGetObjById($oDiv, "ContentZone") $oDiv3 = _IEGetObjById($oDiv2, "ImagesSection") $oUL = _IETagNameGetCollection($oDiv3,"ul",0) $oLI = _IETagNameGetCollection($oUL,"li",2) $oA = _IETagNameGetCollection($oLI,"a",0) _IEAction($oA, "click") Everthing looked from the error traps until the $oUL = _IETagNameGetCollection($oDiv3,"ul",0) line, where my error trapping returns @error as zero and @extended=12. This happens even though there is clearly only one <ul> tag at this point in the code, with 3 <li> tags under it. IT is one of these tags which I am trying to click, specifically <li><a id="Upload">Upload Images</a></li> Attempts to directly access the id="Upload" using _IEGetObjByID() fails unless within the <li> structure itself. Thanks for any help anyone can offer. AnselRoe ;================================================================= to look at the HTML code copy and paste the following ;================================================================= ;This is the HTML Code I am working with: <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Vendor Web</TITLE> <script src="Scripts/fooBar.js" type=text/javascript></SCRIPT> <script src="Scripts/fooBar.Application.js" type=text/javascript></SCRIPT> <script language=javascript type=text/javascript> var Application; Event.observe( window, 'load', InitializeFrames ); function InitializeFrames() { Application = fooBar.Application(); } </SCRIPT> </HEAD><FRAMESET id=FrameContainer border=0 name=FrameContainer frameSpacing=0 rows=*,135 frameBorder=no><FRAME id=MainFrame border=0 name=MainFrame marginWidth=0 marginHeight=0 src="Home/Home.aspx" frameBorder=0 noResize><FRAME id=FilmStrip border=0 name=FilmStrip marginWidth=0 marginHeight=0 src="Order/ImageGallary.aspx?FilmStrip=true&amp;OrderId=999999999" frameBorder=0 noResize></FRAMESET></HTML> ;The Frame within the FRAMESET breaks down like this : </head> <body> <form name="aspnetForm" method="post" action="OrderImages.aspx?orderId=15371370900&amp;navContextID=OrderImages&amp;forceMove=1&amp;IgnoreErrors=1" id="aspnetForm"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEzNTg4ODI3MzhkZOUU7DTgfSVUht+BwPOzPuZl5bdE" /> </div> <input type="hidden" id="surveyState" name="surveyState" value="" /> <div id="header"> <div class="logo"> <h1> <b>FooBar</b> </h1> </div> <div class="utility_nav"> <ul> <li class="first"><a id="LogOutBtn" href="#">Log Out</a></li> <li><a id="MyAccountLnk" href="../UsersHandling/PasswordExpired.aspx">My Account</a></li> </ul> </div> <img src="../Order/Images/background/vender.gif" alt="Vender Web: Vender Access Data System" width="140" height="26" border="0" /> </div> <div id="top_nav"> <ul id="topNavUnorderListId"> <li id="homeTab"><a href="../Home/Home.aspx">Home</a></li> <li id="ordersTab" class="on"><a href="../Order/OpenOrders.aspx?dept=all">Orders</a></li> </ul> <a id="ctl00_ctl00_helplink" href="javascript:RH_ShowHelp(0,'../help/vendor_web.htm',HH_HELP_CONTEXT,31)"><img src="../images/content/btn_help.gif" alt="Help" border="0" height="25" width="55" /></a> </div> <div> <input type="hidden" id="survey" name="survey" value="" /> <input type="hidden" id="OrderId" name="OrderId" value="9999999999999" /> <input type="hidden" id="rLeftNavLoc" name="rLeftNavLoc" value="" /> <div align="center"> <div id="ApplicationBody"> <div id="orderNavigation"></div> <div id="LeftNav"> <ul class="LeftNavigation" style="margin-bottom: 15px;"> <li> <a onclick="gotoOrderDetail()" style="color: Black; font-weight: bold;">Order Details</a> </li> </ul> <div id="LeftNavCenter"> </div> </div> <div id="RightSection"> <div style="float: left; text-align: left;"> <h1 style="padding: 0; margin: 0; font-size: 16pt; font-weight: bold;">Order Images</h1> &nbsp; <b>Loan Type:</b> REO &nbsp; <b>Order #:</b> 99999999 &nbsp; <b>Address:</b> 123 Street Av, AnyCity ST </div> <div style="float: left; text-align: right;"> <img id="CloseBtn" src="../Order/Images/content/btn_close.gif" alt="Close current work order" align="right" style="float: right;" /><img alt="Refresh Page" id="RefreshBtn" src="../Images/content/btn_Refresh.gif" style="display: none; float: right; cursor: hand; margin-right: 5px;" /> </div> <div id="ContentZone" style="height: auto;"> <div id="MessageCenter"></div> <div id="ImagesSection" class="Section Container"> <div class="Caption"> Order Images </div> <div class="body"> <div class="Section Container Collapsable"> <div class="Caption Expanded"> Current Order - #99999999 <ul> <li style="background-image: none;"><a id="DeleteImages">Delete Selected Images</a></li> <li><a id="SelectAll">Select All Images</a></li> <li><a id="Upload">Upload Images</a></li> </ul> </div>
  3. Thanks Dale, I didn't think that I had enough info to make that work. And while the first element did not work, the fourth (chosen randomly) did. Go Figure. Thanks, again AnselRoe
  4. Hi guys, I am an AutoIt noob - but have been able to use most of the _IE UDFs with few problems. Please correct me if I am not in the right place or not sending the required info. I am trying to figure a way (Other than MouseClick) to simulate a click on a line in an Ajax table. I can limit the table to a single line... and only need to "click" anywhere on the first line. The table is in an IEFrame . HTML 'onclick=' code looks like this : (#=======... is my separator) #================================================ </div> <!-- Following Div grid_popup needed for AjaxGrid --> <div class="grid_popup" id="grid_popup" style="visibility: hidden; display: none;"> <div class="popup_body"> <table> <tr> <td onmouseover='className="navon"' onmouseout='className="navoff"' onclick='alert("Do Action 1 \n row: " + o.ClickedRow + "\n ID: " + o.ClickedTD.id );'> Option 1</td> </tr> <tr> <td onmouseover='className="navon"' onmouseout='className="navoff"' onclick='alert("Do Action 2 \n row: " + o.ClickedRow + "\n ID: " + o.ClickedTD.id);'> Option 2</td> </tr> <tr> <td onmouseover='className="navon"' onmouseout='className="navoff"' onclick='alert("Do Action 3 \n row: " + o.ClickedRow + "\n ID: " + o.ClickedTD.id);'> Option 3</td> </tr> </table> </div> #================================================ I know that the row will always be one, if that helps. I have looked at the generated http line and might be able to simulate navigation matching a 'click'. That is, I could simulate the navigation but a critical piece of information required to do that 'SetWorkOrderId' is hidden in a POST response that looks like this: {"rows":[{"row":"1","column1":"\u003cspan\u003e\u003ctable border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\u003e\u003ctr\u003e\u003ctd onclick=\u0027SetWorkOrderId(15189112400)\u0027 style=\"color: red\"\u003e11/26/2009\u003c/td\ .... and I have been unsuccessful at figuring a way to get the POST Response or that piece of information using AutoIT as well. Any help would be appreciated. Thanks, ARG
×
×
  • Create New...