GetValueFromElementAsync

Parent Previous Next

GetValueFromElementAsync

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

Синтаксис

GetValueFromElementAsync(string by, string locator)

GetValueFromElementAsync(Locator locator)

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


Пример:

string value = await tester.GetValueFromElementAsync(Tester.BY_CSS, "input[id='login']");

string value = await tester.GetValueFromElementAsync(Tester.BY_XPATH, "//input[@id='login']");


string value = await tester.GetValueFromElementAsync(tester.GetLocator("locatorName");

Created with the Personal Edition of HelpNDoc: Full-featured EPub generator