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

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 15:55:17 UTC