Re: [WebDriver] getPageSource - Does it need to be a remote end call?

On 21/04/15 06:19, Alexei Barantsev wrote:
> A note: implementing getPageSource is not as trivial as
> driver.execute_script('return document.documentElement.outerHTML') if we
> want to keep backward compatibility and allow getting page source of XML
> and SVG documents.

This works fine, at least in browsers that conform to the spec [1]

[1] http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3505

Received on Tuesday, 21 April 2015 08:56:32 UTC