NOTE: THIS QUESTION IS FOR SWIFT 2, OS X, NOT IOS.
I need a way to programmatically get post-js processed source content (the final source content that is available in a browser's"view source" option).
When programmatically retrieving source content, it has placeholders for the JSON search results instead of the actual results that a browser's "view source" shows.
I'm able to get the page loaded, but don't know how to extract the source content of the loaded URL.
func loadAddressURL() {
let url = "https://url/search"
let URL = NSURL(string: url)!
let request = NSURLRequest(URL: URL)
webView.mainFrame.loadRequest(request)
}