SetAttributeInElementsByClassAsync

Parent Previous Next

SetAttributeInElementsByClassAsync

Description: the method inserts an attribute with the specified value into a set of elements and returns a list as a result

Syntax: SetAttributeInElementsByClassAsync(string _class, string attribute, string value)

Return value: List


Example:

List<string> values = await tester.SetAttributeInElementsByClassAsync("text-field", "value", "test");

foreach (string value in values)

{

       tester.ConsoleMsg(value);

}

Created with the Personal Edition of HelpNDoc: Free PDF documentation generator