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:
FRAMEElement frame = await tester.GetFrameAsync(0);
List<string> values = await frame.SetAttributeInElementsAsync(Tester.BY_CSS, "input", "class", "test-class");
foreach (string value in values)
{
tester.ConsoleMsg(value);
}
List<string> values = await frame.SetAttributeInElementsAsync(Tester.BY_XPATH, "//input", "class", "test-class");
foreach (string value in values)
{
tester.ConsoleMsg(value);
}
Created with the Personal Edition of HelpNDoc: News and information about help authoring tools and software