Sign in to follow this  
Followers 0
JohnOne

IE and dynamic html

4 posts in this topic

Not sure what to search for after "dynamic html" turned up blank.

I click a link by text, next thing, some more html appears with another link I'd wish to click by test.

The html is not there when $oIE is created.

My question is What do I search for here to get me started?

Is there a way do load the current document again, with the new html in it, or something like that?


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The dom will always 'refresh'.  You just need to 'load wait', or if it's truly html created by javascript (which means the html is fully loaded, as far as the browser knows, but dom objects are still being created), or something, you need to loop for your dom object to be present.

Note: my sig IEbyXPATH does a loop for the dom object you specify via xpath.  This works for both the load wait, and the dynamic html scenario...make sure you have an error handler active, since the DOM is not always quereyable.

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

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  
Followers 0