Hey Guys,
I'm trying to figure out how to use Selenium with the PhantomJS browser to pull source code from websites.
I have the following code so far (not much, just testing):
Public Sub PullSourceCode()
Dim wd As New SeleniumWrapper.WebDriver
wd.Start "PhantomJS", "http://www.google.com", ""
wd.Open "http://www.google.com"
wd.Open "http://www.yahoo.com"
wd.Open "http://www.amazon.com"
wd.stop
End Sub
When testing with the Chrome browser instead of PhantomJS (so that it's visible), it successfully loads google, then yahoo, then Amazon.
I'd like to pull the source code of each site and set a variable equal to it so that the source can be parsed down and manipulated.
Thanks!
Matt
Bookmarks