Get-Source

Get the current page source.

Powershell

Get the current page source. Returns: the current page source.

Syntax

Get-Source [[-sessionId] ] []

Parameters

name description
sessionId (Optional) The identifier of the session to route the command to.

Examples

Get-Source

C#

Declaration

System.String OpenQA.Selenium.IWebDriver.PageSource;

Returns:

type description
System.String Source of the current activity.

Examples

driver.PageSource;