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

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?

-Luke

> On Apr 21, 2015, at 8:54 AM, Jason Leyba <jleyba@google.com> wrote:
> 
> new XMLSerializer().serializeToString(document);
> 
>> On Tue, Apr 21, 2015 at 3:18 AM Alexei Barantsev <barancev@gmail.com> wrote:
>> ᐧ
>> What would you suggest to do with IE?
>> 
>> IE11, SVG:
>> http://screencast.com/t/9Cq6YtqIfE
>> 
>> Regards,
>> --
>> Alexei Barantsev, Software-Testing.Ru
>> mailto: barancev@gmail.com
>> phone: +7 (916) 726-95-55
>> skype : barancev
>> 
>> 2015-04-21 11:56 GMT+03:00 James Graham <james@hoppipolla.co.uk>:
>>>> 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 16:28:58 UTC