diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py
index <HASH>..<HASH> 100755
--- a/py/selenium/webdriver/remote/webdriver.py
+++ b/py/selenium/webdriver/remote/webdriver.py
@@ -455,7 +455,7 @@ class WebDriver(object):
         :Usage:
             driver.page_source
         """
-        return self.execute(Command.GET_PAGE_SOURCE)['value']
+        return self.execute_script("return document.documentElement.outerHTML;")
 
     def close(self):
         """
Switch getPageSource to use executeScript as discussed on W3C WebDriver mailing list