appium/appium — pull request #830 by drpy (2013-06-29 21:34:29+00:00)
Title: Make Android.prototype.getPageSource / getPageSourceXML also work under Windows

Make Android.prototype.getPageSource / getPageSourceXML also work under Windows

Three Modifications in the code:
1) generate the temp file name using temp.path
2) split adb shell calls in 2 functions
3) remove temporary files

Tested only on Windows 7, but not whether it is still working on Unix.