How to read the generated source (html with DOM changes) of a webpage within javascript?
<p>I want to read a webpage programmatically (with javascript-angular) and search some elements inside. What i have until now is:</p>

<pre><code>$http.get('http://.....').success(function(data) {
    var doc = new DOMParser().parseFromString(data, 'text/html');
    var result = doc.evaluate('//div[@class = \'xx\']/a', doc, null, XPathResult.STRING_TYPE, null);
    $scope.all = result.stringValue;
});
</code></pre>

<p>so in the example i can read the value of any html element.</p>

<p><strong>Very unluckily</strong>, the page i want to read uses some Javascript and the source code (html) is just a part of its entire html source (including DOM changes), which the browser at the end shows. So the html which is returned  from the http get, does not necessarily contain the elements i need.</p>

<p>Is there a way of getting the entire html after the javascript run?</p>

<p><strong>Edit:</strong> Yes the page is from another domain + The provided API does not give me the info i need.</p>