SetAttributeInElementsAsync
Description: the method inserts an attribute with the specified value into a set of elements and returns a list as a result
Syntax: SetAttributeInElementsAsync(string by, string locator, string attribute, string value)
Return value: List
Example:
List<string> values = await tester.SetAttributeInElementsAsync(Tester.BY_CSS, "input", "class", "test-class");
foreach (string value in values)
{
tester.ConsoleMsg(value);
}
List<string> values = await tester.SetAttributeInElementsAsync(Tester.BY_XPATH, "//input", "class", "test-class");
foreach (string value in values)
{
tester.ConsoleMsg(value);
}
Created with the Personal Edition of HelpNDoc: Free PDF documentation generator