SetHtmlInElementAsync

Parent Previous Next

SetHtmlInElementAsync

Description: the method inserts the html representation of the object into the specified element

Syntax: SetHtmlInElementAsync(string by, string locator, string html)

Return value: no return value


Example:

await tester.SetHtmlInElementAsync(Tester.BY_CSS, "#auth > h2", "<div>text</div>");


await tester.SetHtmlInElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2", "<div>text</div>");

Created with the Personal Edition of HelpNDoc: Create iPhone web-based documentation