SetTextInElementAsync

Parent Previous Next

SetTextInElementAsync

Description: the method inserts text into the specified element

Syntax: SetTextInElementAsync(string by, string locator, string text)

Return value: no return value


Example:

FRAMEElement frame = await tester.GetFrameAsync(0);

await frame.SetTextInElementAsync(Tester.BY_CSS, "#auth > h2", "Тестовый заголовок");


await frame.SetTextInElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2", "Тестовый заголовок");

Created with the Personal Edition of HelpNDoc: News and information about help authoring tools and software