in reply to COM/OLE vs. LWP to access Siebel data?
I don't get any output and am not sure how to coax any output from the page. Am I using this wrong? When I use this technique on www.google.com I either get an integer returned when using a scalar or references when using arrays so I know that I'm close.my @images = $ie->getAllImages; print "@images\n"; my @links = $ie->getAllLinks; print "@links\n";
The full script:
When I do a view source this is what I get:use strict; use warnings; use Win32::IEAutomation; use Data::Dumper; # Creating new instance of Internet Explorer my $ie = Win32::IEAutomation->new( visible => 1); # Site navigation #$ie->gotoURL('http://server.company.com/callcenter_enu/start.swe'); my @images = $ie->getAllImages; #print Dumper(@images); print "Image: @images\n"; my @links = $ie->getAllLinks; #print Dumper(@links); print "Link: @links\n";
<HTML ><head><title>TESTSIEB Siebel Call Center</title><link href="fil +es/main.css" rel="stylesheet"/></head><BODY class="tier2Back" topmarg +in="0" leftmargin="0" marginheight="0" marginwidth="0" onResize="resi +zeHTMLMsgBar()"><div id=dvUIBlock onmousedown="if (!SWEPopupGainFocus +()) this.style.display='none';" style=z-index:101;display:none;positi +on:absolute;top:0;left:0;width:100%;height:100%><TABLE HEIGHT=100% WI +DTH=100%><TR HEIGHT=100%><TD WIDTH=100%> </TD></TR></TABLE></div +><div id=dvBusy style=z-index:100;cursor:wait;display:block;position: +absolute;top:0;left:0;width:100%;height:100%><TABLE HEIGHT=100% WIDTH +=100%><TR HEIGHT=100%><TD WIDTH=100%> </TD></TR></TABLE><div id= +dvScroll style=z-index:100;visibility:hidden;position:absolute;top:0; +left:0;width:100%;height:100%;overflow:auto><textarea rows=500 cols=1 +></textarea></div></div> <script language="javascript" src="16279/scripts/sweutil_stmp.js"></sc +ript> <script> if(typeof(top._swescript)!='undefined'&&top._swescript!=null) top._swe +script.InitFrame(this);</script> <script language="javascript" src="16279/scripts/htmlMessageBar.js"></ +script> <span id=HTMLMessageBar> </span><script>window.setTimeout("Create +MessageBar('HTMLMessageBar', 'HI')", 4000);</script> <script language="javascript" src="16279/scripts/swecommon.js"></scrip +t> <script language="javascript" src="16279/scripts/swecmn_hi.js"></scrip +t> <script> SWEIsHighInteract = true; Top().SWEIsHighInteract = true; if (typeof(Top().SWEHtmlPopupName) == 'undefined' || Top().SWEHtmlPopu +pName == null) Top().SWEHtmlPopupName = '_swe1243292505'; if (typeof(top._samePage) != 'undefined' && top._samePage!="") top._sa +mePage = ""; if (top.opener == null || typeof top.opener.swetop == 'unknown' || typ +eof top.opener.swetop == 'undefined') top._swe._sweapp.S_App.SWECount + = 1; else top.opener.top._swe._sweapp.S_App.SWECount = 1; g_bInitialized = true; var ctrlLookupMap = new Array(); function FindControl (appletName, controlName) { return (ctrlLookupMap + [appletName + "." + controlName]); } var ctrlLookupMap = new Array(); function FindControl (appletName, controlName) { return (ctrlLookupMap + [appletName + "." + controlName]); } </script> <script for=window event=onunload> if (typeof Top()._swe != "undefined" ) try{Top().JSSHandleEvents(this, + false);}catch(e){} </script> <script for=window event=onload> if (typeof Top()._swe != "undefined" ) {Top().JSSHandleEvents(this, tr +ue);}else HandleEvent("Disable", false); </script> <script for=window event=onresize>resizeHTMLMsgBar();</script></BODY>< +/HTML>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: COM/OLE vs. LWP to access Siebel data?
by glasswalk3r (Friar) on Aug 10, 2011 at 09:08 UTC |