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

That works on "everything"? Do we care about htmlUnit? (That's a bit of a rhetorical question)

-Luke

> On Apr 21, 2015, at 9:42 AM, James Graham <james@hoppipolla.co.uk> wrote:
> 
>> 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 17:09:47 UTC