Jump to content
Sign in to follow this  

IE, iFrames and 'Generated Source Code'

Recommended Posts


Hi all,

I'm opening a new thread even though I'm still stuck on the same issue (). The reason is, because this is another way of looking at where I'm stuck.

I've used the debugging help I got in the other thread to 'navigate' to the proper iFrame (i.e. $oFrame = _IEFrameGetObjByName ($oIE, "Innere Seite des Desktop "). For all I can tell, this IS where my the link in question is situated. When I use Google Chrome and use 'Inspect Element', I do see the following link in the above mentioned iFrame:

<a class="urLnkFunction" id="aaab.InventoryUnsoldView.lnkValidateVIN" ct="LN" st="" onkeydown="return me.h_m(event,window,'sapUrMapi_Link_activate(\'aaab.InventoryUnsoldView.lnkValidateVIN\',SSR.event)');" href="javascript:void(0);" onclick="return me.h_e(event,window,this,'Link','LINKCLICK',{'event':'event','ControlId':'aaab.InventoryUnsoldView.lnkValidateVIN'},'',true);" style="white-space:nowrap;" he=""><span class="urLnkTxtStd">RSWR nach VIN eingeben oder aktualisieren</span></a>

However, if I do use




I always seem to receive zero results - as if the iFrame is empty. Now, as I have mentioned, this is a Java-based site and it's entirely possible, that the content of the iFrame is loaded after the page as completely loaded.

So, how do I proceed from here to get to that link? Is there something I could use like the 'Generated Source Code' that I can have displayed in FF or GC.

You're help is much appreciated.


Share this post

Link to post
Share on other sites

IE.au3 only works with the final HTML as long as you insure the page load is complete.

Try ConsoleWrite(_IEDocReadHTML($oFrame)) to see if the source is what you expect.


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

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
Sign in to follow this