How to get HTML code back?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
XR4-IT
Newbie
Posts: 9
Joined: Fri Apr 11, 2008 10:01 pm

How to get HTML code back?

Post by XR4-IT » Fri Jun 20, 2008 7:35 pm

[quote="XR4-IT"]I’ve been unable to find in the Help how to access the HTML from an IE object.
For example after IE_Navigate>%IE[0]%,https://www.optimalblue.com/optimallender/login.aspx,r

How do I get to where the HTML is?[/quote]
I posted this and thought I sould move it to the proper board.

I found a way to get a variable to hold html using the IE_ExtractTag> function, but any time I try to take large portions of html code the macro will freeze up. Is there any other way to get at the HTML code of a IE object?

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Jun 20, 2008 9:07 pm

May be a dumb question but can you use HTMLRequest instead?

XR4-IT
Newbie
Posts: 9
Joined: Fri Apr 11, 2008 10:01 pm

Post by XR4-IT » Fri Jun 20, 2008 9:17 pm

No because the user needs to be able to interact with the browser. The URL isn’t really a good example for what I’m trying to do with this.

Basically I was using the IE_ExtractTag> function to get several form values, but the problem is that the form settings are customizable making it so the values I want won’t be in the same place on the web page for my users. Each field however has a name in the input tag that I could have used to parse the HTML directly with the MidStr> function. Getting to the HTML to do that though has proven difficult especially since I still need the user to be able to work with the site at the same time.

Thanks,

XR4-IT

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Jun 20, 2008 10:16 pm

Hmmm, that is tricky :?


(Me posting that almost guarantees that Marcus swoop in and post a solution :wink: )

XR4-IT
Newbie
Posts: 9
Joined: Fri Apr 11, 2008 10:01 pm

Post by XR4-IT » Fri Jun 27, 2008 4:51 pm

I haven't gotten an answer to my question yet… I thought maybe I would post the code that I’m using to get try and get the HTML and perhaps someone can tell me what I’m ding wrong.

The page is loaded in the browser that the IE[0] object created, and then I use these lines of code.

IE_ExtractTag>%IE[0]%,,FORM,0,1,FORM0,html
MidStr>html_6,1,html,FORM0

This code block would contain most of the data on the page, but when I get to this part of the code the script freezes.

I think it has something to do with the length of the string I am going for… if any one can help me it would be appreciated.

Thanks

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts