GetHtmlFromElementAsync

Parent Previous Next

GetHtmlFromElementAsync

Description: the method returns the html representation of the object in a string expression

Syntax: GetHtmlFromElementAsync(string by, string locator)

Return value: string


Example:

FRAMEElement frame = await tester.GetFrameAsync(0);

string html = await frame.GetHtmlFromElementAsync(Tester.BY_CSS, "#auth > h2");


string html = await frame.GetHtmlFromElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2");

Created with the Personal Edition of HelpNDoc: Easily create EPub books