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

On 21/04/15 17:28, Luke Inman-Semerau wrote:
> So the local end needs to be context aware of what browser it is
> running? Or we basically include a page source Atom on the client and
> push the whole thing across the wire to handle all browsers?

No, of course not.

var source = document.documentElement.outerHTML;
if (!source) {
   source = new XMLSerializer().serializeToString(document);
}
return source;

Received on Tuesday, 21 April 2015 16:43:12 UTC