GetValueFromElementAsync

Parent Previous Next

GetValueFromElementAsync

Description: the method returns the value from the specified element

Syntax

GetValueFromElementAsync(string by, string locator)

GetValueFromElementAsync(Locator locator)

Return value: string


Example:

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: Easy EPub and documentation editor