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:

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


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

Created with the Personal Edition of HelpNDoc: Free help authoring tool