GetTextFromElementAsync
Описание: метод возвращает текст из указанного элемента
Синтаксис:
GetTextFromElementAsync(string by, string locator)
GetTextFromElementAsync(Locator locator)
Возвращаемое значение: строка (string)
Пример:
string text = await tester.GetTextFromElementAsync(Tester.BY_CSS, "#auth > h2");
string text = await tester.GetTextFromElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2");
string text = await tester.GetTextFromElementAsync(tester.GetLocator("locatorName"));
Created with the Personal Edition of HelpNDoc: Free help authoring tool