-
Solved: How to get page source after submit event
Hello
Because this is my first post, i'll introduce myself.
I've started programming in C# 3 years ago.
Most of my work consist of simple school projects and some scripting.
Recently i have started to work with access(VBA),which i find easy to adapt to.
Now lets talk about my current problem.
I want my application to fill textboxes on a web form and click the submit button.
After the submit button is clicked, certain text is shown(depending on my previous input), And get THAT pagesource
I managed to do the filling and clicking part.
I also know how to get a page source from a website.
But the thing is, the URL does not change after the submit button is clicked.
So if i try to get the pagesource, i get the pagesource from the first page(submit button not clicked).
My question is: How do i get the pagesource from the URL, after i press the button.
Im using IE object
[vba]Set IE = CreateObject("InternetExplorer.Application")
With IE
.MenuBar = 1
.Toolbar = 1
.StatusBar = 1
.navigate "URL(can't post real URL)"
.Visible = 1
End With[/vba]
I hope im being clear enough.
Have a nice day
Last edited by Skaapn; 05-03-2012 at 07:25 AM.
-
I've got it working with this:
[vba]IE.Document.documentElement.outerHTML[/vba]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules