19.2 WebDriver browser methods
19.2.1| getPageSourceReturns the page source of the last loaded page. The page source returned is a representation of the underlying DOM. It may not be formatted or escaped in the same way as the response sent from the server. …