Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 1.2 KB

File metadata and controls

17 lines (16 loc) · 1.2 KB

WebElementExtensions.GetSource(OpenQA.Selenium.IWebElement) Method

Get the element's HTML and all it's content, including the start tag, it's attributes, and the end tag.

public static string GetSource(this OpenQA.Selenium.IWebElement element);

Parameters

element OpenQA.Selenium.IWebElement
The OpenQA.Selenium.IWebElement from which to get the outer HTML.

Returns

System.String
The HTML element and all it's content, including the start tag, it's attributes, and the end tag.

Remarks

Works only on Web/Mobile Web platforms.