GetTextFromElementAsync

Parent Previous Next

GetTextFromElementAsync

Описание: метод возвращает текст из указанного элемента

Синтаксис: GetTextFromElementAsync(string by, string locator)

Возвращаемое значение: строка (string)


Пример:

string text = await tester.GetTextFromElementAsync(Tester.BY_CSS, "#auth > h2");


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

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