Skip to content

Commit

Permalink
Revert "Switch getPageSource to use executeScript as discussed on W3C…
Browse files Browse the repository at this point in the history
… WebDriver mailing list" can be re-reverted with a more complete pageSource script.

This reverts commit 091b037.
  • Loading branch information
lukeis committed Jun 4, 2015
1 parent 6810263 commit 430c147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def page_source(self):
:Usage:
driver.page_source
"""
return self.execute_script("return document.documentElement.outerHTML;")
return self.execute(Command.GET_PAGE_SOURCE)['value']

def close(self):
"""
Expand Down

0 comments on commit 430c147

Please sign in to comment.