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:

FRAMEElement frame = await tester.GetFrameAsync(0);

await frame.SetHtmlInElementAsync(Tester.BY_CSS, "#auth > h2", "<div>Тестовый блок</div>");


await frame.SetHtmlInElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2", "<div>Тестовый блок</div>");

Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents