GetHtmlFromElementAsync
Description: the method returns the html representation of the object in a string expression
Syntax:
GetHtmlFromElementAsync(string by, string locator)
GetHtmlFromElementAsync(Locator locator)
Return value: string
Example:
string html = await tester.GetHtmlFromElementAsync(Tester.BY_CSS, "#auth > h2");
string html = await tester.GetHtmlFromElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2");
string html = await tester.GetHtmlFromElementAsync(tester.GetLocator("locatorName"));
Created with the Personal Edition of HelpNDoc: Free PDF documentation generator