getSource
Get source code of the page. This command won’t work in mobile environments for native apps. If you are running hybrid tests make sure that you are in the webview before calling this command.
Usage
1 | browser.getSource(); |
Example
1 | it('should get the source of the html document', function () { |
Returns
- <String>: source code of current website