mnchartier Posted September 8, 2006 Share Posted September 8, 2006 Working on a project for a server that I have to login to and create users and want to automate it. I have the logging in part done, but then I have a problem, the page has 2 framesets I believe one inside the other. I have the FrameSet ID name that I need to get to. Then there are 4 frames inside it. I need to go to the 4th Frame. In the body of this frame are three tables, I need the first one. Then there are 3 TRs inside the table. I need the 3rd TR then the second TD, then there is a DIV that has a UL Class of TOC. Then there is a list of LI Class TOC within there. Each one has an A Class and UL Class. I need to be able to select the 1st LI Class then the then the A Class which has the Text that I have been trying to do clicks on but unsuccessfully. I am not looking for someone to code this for me but just a small guidence as to how to assure I am grabbing the right frame set and then getting through the tables. I got this info from the DOM in the IE Deve Toolbar. I have been fine in the past doing small scripts with IE but it has always been with forms and not frames. Yes I have looked in the help files and I just have not been able to work this by what I have read so far. Been doing this for a few days now and starting to get aggrivated Thanks in advance. Link to comment Share on other sites More sharing options...
AceLoc Posted September 8, 2006 Share Posted September 8, 2006 (edited) you looked everywhere yes you did exept the ****sake helpfile. Edited September 8, 2006 by aceloc [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
mnchartier Posted September 8, 2006 Author Share Posted September 8, 2006 I have been looking in the help file that is how I got past everything else.Like tring to get the tables from the page using$oTable = _IETableGetCollection ($oIE)$iNumTables = @extendedMsgBox(0, "Table Info", "There are " & $iNumTables & " tables on the page")It gives 0 tables but the DOM shows them as being there. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 8, 2006 Moderators Share Posted September 8, 2006 You need to first get a reference to the frame before you can get a reference to the tables. Take a look at the _IEFrame* functions in the help file. Link to comment Share on other sites More sharing options...
mnchartier Posted September 8, 2006 Author Share Posted September 8, 2006 (edited) Sort of like this$oFrames = _IEFrameGetCollection ($oIE)$iNumFrames = @extendedFor $i = 0 to ($iNumFrames - 1) $oFrame = _IEFrameGetCollection ($oIE, $i) MsgBox(0, "Frame Info", _IEPropertyGet ($oFrame, "locationurl"))NextThis returns 5 frames and I am able to see the url of them. Do I need to set each frame with it's own variable or can I use ($oFrame,1) to reference that particular frame, instead of showing the url what line would show the actual name of the frame so you can use _IEFrameGetObjByName, in the help file the url, by using the _IEPropertyGet, is the only thing that looks helpful pertainning to the frame itself.I have the frameset names from the DOM, the one that I need is STMainFrame2. Then the frames below that have no names, but there are four of them.So I could use $oFrame = _IEFrameGetObjByName ($oIE, "STMainFrame2") to reference that frame correct. Then when trying to get any other frames (collecting) instead of using $oIE I would use $oFrame. Would this logic be correct. Edited September 8, 2006 by mnchartier Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 8, 2006 Moderators Share Posted September 8, 2006 (edited) This should give you some good diagnostic info. $oFrames = _IEFrameGetCollection ($oIE) ConsoleWrite("Frame Count: " & @extended & @CR) $i = 0 $sFrameInfo = "" For $oFrame In $oFrames $sFrameInfo &= "===============" & @CR $sFrameInfo &= "Frame: " & $i & @CR $sFrameInfo &= "Name: " & $oFrame.name & @CR $sFrameInfo &= "SRC: " & $oFrame.src & @CR $sFrameInfo &= ">>>>><HTML START><<<<<" & @CR & $oFrame.innerHTML & @CR $sFrameInfo &= ">>>>><HTML END><<<<<" & @CR $i += 1 Next $sFrameInfo &= "===============" ConsoleWrite($sFrameInfo & @CR) Edited September 11, 2006 by big_daddy Link to comment Share on other sites More sharing options...
mnchartier Posted September 8, 2006 Author Share Posted September 8, 2006 I just tried the diag. that you posted and I got in the console only.Frame Count: 5=================There were no errors during the script in the console either.I also tried to use $sframes = _IEFrameGetObjByName ($oIE, "STMainFrame2")STMainFrame2 is the name of the frame retrieved from DOM and got an error no match Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 8, 2006 Moderators Share Posted September 8, 2006 Try adding this toward the top of your script and run it again. _IEErrorHandlerRegister() Link to comment Share on other sites More sharing options...
mnchartier Posted September 11, 2006 Author Share Posted September 11, 2006 (edited) I added that error handling and now I get this in the consoleFrame Count: 5--> COM Error Encountered in shorte.au3----> $IEComErrorScriptline = 30----> $IEComErrorNumberHex = 80020003----> $IEComErrorNumber = -2147352573----> $IEComErrorWinDescription = Member not found.----> $IEComErrorDescription = ----> $IEComErrorSource = ----> $IEComErrorHelpFile = ----> $IEComErrorHelpContext = ----> $IEComErrorLastDllError = 14007I removed from my script some remarked lines, line 30 that is referenced above is the line that is For $oFrame In $oFramesHere is my script.#include <IE.au3>_IEErrorHandlerRegister()$oIE = _IECreate ("http://10.99.0.10/shorewaredirector/login.asp")$LForms = _IEFormGetCollection ($oIE,0)$LObjects = _IEFormElementGetCollection ( $LForms,-1)$oQueryl = _IEFormElementGetObjByName ($LForms, "login")_IEFormElementSetValue ($oQueryl, "admin")$oQueryp = _IEFormElementGetObjByName ($LForms, "password")_IEFormElementSetValue ($oQueryp, "changeme")$oSubmit = _IEGetObjByName ($LForms, "SUBMIT1")_IEAction ($oSubmit, "click")_IELoadWait ($oIE)$oFrames = _IEFrameGetCollection ($oIE)ConsoleWrite("Frame Count: " & @extended & @CR)$i = 0$sFrameInfo = ""For $oFrame In $oFrames $sFrameInfo &= "===============" $sFrameInfo &= "Frame: " & $i & @CR $sFrameInfo &= "Name: " & $oFrame.name & @CR $sFrameInfo &= "SRC: " & $oFrame.src & @CR $sFrameInfo &= ">>>>><HTML START><<<<<" & @CR & $oFrame.innerHTML & @CR $sFrameInfo &= ">>>>><HTML END><<<<<" & @CR $i += 1Next$sFrameInfo &= "==============="ConsoleWrite($sFrameInfo & @CR);$sframes = _IEFrameGetObjByName ($oIE,"");$isframes = @extended;MsgBox(1,"Frames", $isframes);$oFrames = _IEFrameGetCollection ($oIE,0);$iNumFrames = @extended;For $i = 0 to ($iNumFrames - 1); $oFrame = _IEFrameGetCollection ($oIE, $i); MsgBox(0, "Frame Info", _IEPropertyGet ($oFrame, "locationurl") & " " & $oFrames);Next Edited September 11, 2006 by mnchartier Link to comment Share on other sites More sharing options...
DaleHohm Posted September 11, 2006 Share Posted September 11, 2006 Try using this to get the frame collection instead: $oFrames = _IETagNameGetCollection ($oIE, "frame") Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
mnchartier Posted September 11, 2006 Author Share Posted September 11, 2006 (edited) Dale, Thanks alot that is now showing info in the console. This is what I need to work with now. ===============Frame: 3 Name: TOCPANE SRC: navigator.asp >>>>><HTML START><<<<< 0 >>>>><HTML END><<<<< So now to my knowledge on this page I need to grab the tables that are in this frame. Am I correct that if I use $NavFrame = _IEGetObjByName ($oIE, "TOCPANE") I can then use $NavFrame as a reference to try and get the tables from the frame named TOCPANE? Edited September 11, 2006 by mnchartier Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 11, 2006 Moderators Share Posted September 11, 2006 Yes that should work. Link to comment Share on other sites More sharing options...
mnchartier Posted September 11, 2006 Author Share Posted September 11, 2006 When I use that nothing changes if I use the IETagNameGetCollection with $NavForm as a reference it returns with the same information as if I was still referencing the entire page and not the frame the @extended of the GetObjbyname returns a 1. Also with the "$oFrames = _IETagNameGetCollection ($oIE, "frame")" I should be able to use TR right, how about any of the classes such as UL or A. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 11, 2006 Moderators Share Posted September 11, 2006 When I use that nothing changes if I use the IETagNameGetCollection with $NavForm as a reference it returns with the same information as if I was still referencing the entire page and not the frame the @extended of the GetObjbyname returns a 1.Try using this instead, it should return the "TOCPANE" frame. $oFrame = _IETagNameGetCollection ($oIE, "frame", 3) Also with the "$oFrames = _IETagNameGetCollection ($oIE, "frame")" I should be able to use TR right, how about any of the classes such as UL or A.The way you are using it there it will return a collection object not an object reference. Link to comment Share on other sites More sharing options...
mnchartier Posted September 12, 2006 Author Share Posted September 12, 2006 Having a problem still, it is still showing the main 5 frames, here is the entire code, maybe there is a typo somewhere. expandcollapse popup#include <IE.au3> ; Error handler for diagnostics _IEErrorHandlerRegister() ; Change to Gui Inputed Address $oIE = _IECreate ("http://10.99.0.10/shorewaredirector/login.asp"); Open Shoreware Director $LForms = _IEFormGetCollection ($oIE,0); Collect the number of forms on the web page $LObjects = _IEFormElementGetCollection ( $LForms,-1); Collect elements on the form $oQueryl = _IEFormElementGetObjByName ($LForms, "login"); Select element for username ; Change to user inputed username _IEFormElementSetValue ($oQueryl, "admin"); submit user inputed username $oQueryp = _IEFormElementGetObjByName ($LForms, "password"); Select element for passowrd ; Change to user inputed password _IEFormElementSetValue ($oQueryp, "changeme"); submit user inputed password $oSubmit = _IEGetObjByName ($LForms, "SUBMIT1"); select the login button _IEAction ($oSubmit, "click"); click on the login button _IELoadWait ($oIE); wait for page to load ; ************************************************************************************* ; Retrieve frames from main page ; ************************************************************************************* $oFrames = _IETagNameGetCollection ($oIE, "frame", -1); Collect the frame count of the page ConsoleWrite("Frame Count: " & @extended & @CR); open console and print frame count $i = 0; set interval to 0 $sFrameInfo = ""; Set variable to null (empty string) For $oFrame In $oFrames; For each frame $sFrameInfo &= "===============" $sFrameInfo &= "Frame: " & $i & @CR; print frame number to console $sFrameInfo &= "Name: " & $oFrame.name & @CR; print frame name to console $sFrameInfo &= "SRC: " & $oFrame.src & @CR; print frame src to console $sFrameInfo &= "SRC Index: " & $oFrame.sourceindex & @CR; print frame source index to console $sFrameInfo &= ">>>>><HTML START><<<<<" & @CR & $oFrame.innerHTML & @CR; print frame inner html to console $sFrameInfo &= ">>>>><HTML END><<<<<" & @CR; end of frame inner html $i += 1; add 1 to interval Next; process next $sFrameInfo &= "==============="; sets to console print header ConsoleWrite($sFrameInfo & @CR); print last line of console print ; ***************************************************************************************** ; TOC Frame Frame #3 ; ; ***************************************************************************************** $oFrame = _IETagNameGetCollection ($oIE, "frame", 3) ConsoleWrite("Frame Count: " & @extended & @CR) $i = 0 $sFrameInfo = "" For $oFrame In $oFrames $sFrameInfo &= "===============" $sFrameInfo &= "TOCPANE Frame: " & $i & @CR $sFrameInfo &= "TOCPANE Name: " & $oFrame.name & @CR $sFrameInfo &= "TOCPANE SRC: " & $oFrame.src & @CR $sFrameInfo &= ">>>>><HTML START><<<<<" & @CR & $oFrame.innerHTML & @CR $sFrameInfo &= ">>>>><HTML END><<<<<" & @CR $i += 1 Next $sFrameInfo &= "===============" ConsoleWrite($sFrameInfo & @CR) Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 12, 2006 Moderators Share Posted September 12, 2006 Could you provide some source code from the webpage? Link to comment Share on other sites More sharing options...
mnchartier Posted September 12, 2006 Author Share Posted September 12, 2006 (edited) Here is the source code of the navagation pane on the page, I have to actually select the pane (frame) that I want the source from, yet the DOM shows everything. expandcollapse popup<html> <head> <META NAME="GENERATOR" Content="Microsoft Developer Studio"> <META HTTP-EQUIV="Content-Type" content="text/html; charset=UTF-8"> <META HTTP-EQUIV="Expires" CONTENT="Tue, 04 Dec 1996 21:29:02 GMT"> <LINK REL="stylesheet" TYPE="text/css" HREF="./common/styles.css"> <script> <!-- function So() { var u= event.srcElement; if(u.parentElement.tagName == "TD") { u= u.parentElement.parentElement; if(u != null) u= document.all[u.sourceIndex + (u.tagName == "UL" ? 3 : 7)]; } else u= u.parentElement.children[1]; if(u != null && u.tagName == "UL") u.style.display= u.style.display == "" ? "none" : ""; event.cancelBubble= true; event.returnValue= false; } function Io() { try { var x= event.srcElement; if(x.target) return; var t= top.frames["TEXT"]; if(t == null) t= self; var y= top.frames[0]; if(y) y.last_href= x.href; if(t.location.href != x.href) // does not work with remote sites giving permission denied error t.location.href= x.href; } catch(e) { t.location.href= x.href; } event.cancelBubble= true; event.returnValue= false; } <!-- //--> </script> </head> <body class="TOC" onhelp="return top.He()"> <SPAN ID=AutoLogoffWarning class="TOC"></SPAN> <script> function Lo(GoToLogin) { if (GoToLogin) { try { top.location.replace("http://10.99.0.10/shorewaredirector/login.asp"); } catch(oException) {} } return false; } </script> <table BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="201"> <tr> <td WIDTH="14"> <td WIDTH="183"> </tr> <tr> <td COLSPAN="2" ALIGN="left"> <a class="TOC" HREF="navigator.asp#" onclick="So()"> Administration </a> <tr> <td> <td> <div> <ul class=TOC style='display:'> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Users...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="user_list.asp" onclick="Io()">Individual Users</a> <li class=TOC><a class=TOC HREF="usergroup_list.asp" onclick="Io()">User Groups</a> <li class=TOC><a class=TOC HREF="cos_lists.asp" onclick="Io()">Class of Service</a> <li class=TOC><a class=TOC HREF="notifynewusers.asp" onclick="Io()">Notify Users</a> <li class=TOC><a class=TOC HREF="unassignedteleports.asp" onclick="Io()">Anonymous Telephones</a> <li class=TOC><a class=TOC HREF="ext_lists.asp" onclick="Io()">Extension Lists</a> <li class=TOC><a class=TOC HREF="batchutility.asp" onclick="Io()">Batch Update Utility</a> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Call Handling Mode Defaults...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="chmdefault.asp?ID=1" onclick="Io()">Standard</a> <li class=TOC><a class=TOC HREF="chmdefault.asp?ID=2" onclick="Io()">In a Meeting</a> <li class=TOC><a class=TOC HREF="chmdefault.asp?ID=3" onclick="Io()">Out of Office</a> <li class=TOC><a class=TOC HREF="chmdefault.asp?ID=4" onclick="Io()">Extended Absence</a> <li class=TOC><a class=TOC HREF="chmdefault.asp?ID=5" onclick="Io()">Custom</a> </ul> </ul> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Trunks...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="trunk_list.asp" onclick="Io()">Individual Trunks</a> <li class=TOC><a class=TOC HREF="trunkgroup_list.asp" onclick="Io()">Trunk Groups</a> <li class=TOC><a class=TOC HREF="prefix_exceptions.asp" onclick="Io()">Local Prefixes</a> </ul> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">IP Phones...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="getPref.asp?obj=IPPhone" onclick="Io()">Individual IP Phones</a> <li class=TOC><a class=TOC HREF="IPPhoneRanges.asp" onclick="Io()">IP Phone Address Map</a> <li class=TOC><a class=TOC HREF="IPPhoneOptions.asp" onclick="Io()">Options</a> </ul> <li class=TOC><a class=TOC HREF="switch_list.asp" onclick="Io()">Switches</a> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Call Control...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="getPref.asp?obj=AcctCode" onclick="Io()">Account Codes</a> <li class=TOC><a class=TOC HREF="MAE_list.asp" onclick="Io()">Bridged Call Appearances</a> <li class=TOC><a class=TOC HREF="huntgroup_list.asp" onclick="Io()">Hunt Groups</a> <li class=TOC><a class=TOC HREF="paging_list.asp" onclick="Io()">Paging Groups</a> <li class=TOC><a class=TOC HREF="routepoints_list.asp" onclick="Io()">Route Points</a> <li class=TOC><a class=TOC HREF="pbx.asp" onclick="Io()">Options</a> </ul> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Voice Mail...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="system_dl_list.asp" onclick="Io()">System Distribution Lists</a> <li class=TOC><a class=TOC HREF="admin/Amislist.asp" onclick="Io()">AMIS</a> <li class=TOC><a class=TOC HREF="voicemail.asp" onclick="Io()">Options</a> </ul> <li class=TOC><a class=TOC HREF="menu_list.asp" onclick="Io()">Auto-Attendant Menus</a> <li class=TOC><a class=TOC HREF="workgroup_list.asp" onclick="Io()">Workgroups</a> <li class=TOC><a class=TOC HREF="schedule_list.asp" onclick="Io()">Schedules</a> <li class=TOC><a class=TOC HREF="SysDirList.asp" onclick="Io()">System Directory</a> <li class=TOC><a class=TOC HREF="VMServer_list.asp" onclick="Io()">Application Servers</a> <li class=TOC><a class=TOC HREF="cServers.asp" onclick="Io()">Conference Bridges</a> <li class=TOC><a class=TOC HREF="sites_list.asp" onclick="Io()">Sites</a> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">System Parameters...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="dialing.asp" onclick="Io()">Dialing Plan </a> <li class=TOC><a class=TOC HREF="translationTables.asp" onclick="Io()">Digit Translation Tables</a> <li class=TOC><a class=TOC HREF="systemextensions.asp" onclick="Io()">System Extensions</a> <li class=TOC><a class=TOC HREF="snmp.asp" onclick="Io()">SNMP</a> <li class=TOC><a class=TOC HREF="bootpee.asp" onclick="Io()">BOOTP Server</a> <li class=TOC><a class=TOC HREF="othersystemparams.asp" onclick="Io()">Other</a> <li class=TOC><a class=TOC HREF="LanguageList.asp" onclick="Io()">Languages</a> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Licenses...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="LicenseReqs.asp" onclick="Io()">Requirements</a> <li class=TOC><a class=TOC HREF="LicenseKeys.asp" onclick="Io()">Keys</a> </ul> <li class=TOC><a class=TOC HREF="contact.asp" onclick="Io()">Contact Information</a> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Administrative Permissions...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="admins.asp" onclick="Io()">Administrators</a> <li class=TOC><a class=TOC HREF="AdminRoles.asp" onclick="Io()">Roles</a> </ul> </ul> <li class=TOC><a class=TOC HREF="aa_options.asp" onclick="Io()">Preferences</a> </ul> </div> </table> <table BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="201"> <tr> <td WIDTH="14"> <td WIDTH="183"> </tr> <tr> <td COLSPAN="2" ALIGN="left"> <a class="TOC" HREF="navigator.asp#" onclick="So()"> Maintenance </a> <tr> <td> <td> <div> <ul class=TOC style='display:'> <li class=TOC><a class=TOC HREF="maint/quicklook.asp" onclick="Io()">Quick Look</a> <li class=TOC><a class=TOC HREF="maint/SwitchConnectivity.asp?Id=99999" onclick="Io()">Switch Connectivity</a> <li class=TOC><a class=TOC HREF="maint/confPorts.asp" onclick="Io()">Conference Ports</a> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Event Log...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="maint/eventlog.asp?T=S" onclick="Io()">System</a> <li class=TOC><a class=TOC HREF="maint/eventlog.asp?T=A" onclick="Io()">Application</a> </ul> <li class=TOC><a class=TOC HREF="maint/services.asp" onclick="Io()">Services</a> <li class=TOC><a class=TOC HREF="eventfilter_list.asp" onclick="Io()">Event Filters</a> </ul> </div> </table> <table BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="201"> <tr> <td WIDTH="14"> <td WIDTH="183"> </tr> <tr> <td COLSPAN="2" ALIGN="left"> <a class="TOC" HREF="navigator.asp#" onclick="So()"> Documentation </a> <tr> <td> <td> <div> <ul class=TOC style='display:'> <li class=TOC><a class=TOC HREF="Documentation/SysAdminGuide.pdf" TARGET="doc" onclick="Io()">Administration Guide</a> <li class=TOC><a class=TOC HREF="Documentation/InstallPlanGuide.pdf" TARGET="doc" onclick="Io()">Planning and Installation Guide</a> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Telephone User Interface...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="TuiGuides_Languages.asp?tuitype=Analog Phone&filename=ShoreLineTUI" onclick="Io()">Analog Phone</a> <li class=TOC><a class=TOC HREF="Documentation/en-US/ShorelineTuiAP100.pdf" TARGET="doc" onclick="Io()">AP100 Phone</a> <li class=TOC><a class=TOC HREF="Documentation/en-US/IPPhoneTUI.pdf" TARGET="doc" onclick="Io()">IP100 Phone</a> <li class=TOC><a class=TOC HREF="TuiGuides_Languages.asp?tuitype=IP110 Phone&filename=iptui_110" onclick="Io()">IP110 Phone</a> <li class=TOC><a class=TOC HREF="TuiGuides_Languages.asp?tuitype=IP210 Phone&filename=iptui_210" onclick="Io()">IP210 Phone</a> <li class=TOC><a class=TOC HREF="TuiGuides_Languages.asp?tuitype=IP212k Phone&filename=iptui_212k" onclick="Io()">IP212k Phone</a> <li class=TOC><a class=TOC HREF="TuiGuides_Languages.asp?tuitype=IP230 Phone&filename=iptui_230" onclick="Io()">IP230 Phone</a> <li class=TOC><a class=TOC HREF="TuiGuides_Languages.asp?tuitype=IP530/IP560&filename=iptui_530560" onclick="Io()">IP530/IP560</a> <li class=TOC><a class=TOC HREF="Documentation/en-US/TUI_PrgBtn.pdf" TARGET="doc" onclick="Io()">Programmable Buttons</a> </ul> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Server...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="Documentation/Server/ReleaseNotes.pdf" TARGET="doc" onclick="Io()">Release Notes</a> </ul> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Client...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="Documentation/Client/ReleaseNotes.pdf" TARGET="doc" onclick="Io()">Release Notes</a> </ul> <li class=TOC><a class=TOC HREF="navigator.asp#" onclick="So()">Quick Reference...</a> <ul class=TOC style='display:none'> <li class=TOC><a class=TOC HREF="Documentation/en-US/qrc_vm.pdf" TARGET="doc" onclick="Io()">VoiceMail</a> <li class=TOC><a class=TOC HREF="Documentation/en-US/qrc_ip110.pdf" TARGET="doc" onclick="Io()">IP110 Phone</a> <li class=TOC><a class=TOC HREF="Documentation/en-US/qrc_ip210.pdf" TARGET="doc" onclick="Io()">IP210 Phone</a> <li class=TOC><a class=TOC HREF="Documentation/en-US/qrc_ip530_560.pdf" TARGET="doc" onclick="Io()">IP530/IP560</a> </ul> </ul> </div> </table> </body> </html> This is the object that I am looking at selecting to get to the add user page <li class=TOC><a class=TOC HREF="user_list.asp" onclick="Io()">Individual Users</a> Edited September 13, 2006 by mnchartier Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 13, 2006 Moderators Share Posted September 13, 2006 As long as $oFrame is a reference to the correct frame then this will work. _IELinkClickByText($oFrame, "Individual Users") Link to comment Share on other sites More sharing options...
mnchartier Posted September 15, 2006 Author Share Posted September 15, 2006 I want to thank you for your help on this, I did have to add an _IEFrameISSet before the reference of the frames. Link to comment Share on other sites More sharing options...
mnchartier Posted September 18, 2006 Author Share Posted September 18, 2006 Having a problem with what seems to be only one link that I am trying to select. $TOCPANE = _IEFrameGetObjByName ($Director, "TOCPANE") ; TOC Frame Frame #3 _IELinkClickByText($TOCPANE, "System Parameters...") ; Works _IELinkClickByText($TOCPANE, "Other") ; Works is set under the System Parameters Link part of table _IELinkClickByText($TOCPANE, "Dialing Plan") ; Does not work, same as above part of the table This is the only one that I have a problem with, I am almost done this little application and this is the only thing I have a problem with. I got the link name (text) from the DOM just like the others and I get a no match error in the console. Any ideas? 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