SetAttributeInElementsByTagAsync

Parent Previous Next

SetAttributeInElementsByTagAsync

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

Syntax: SetAttributeInElementsByTagAsync(string tag, string attribute, string value)

Return value: List


Example:

List<string> values = await tester.SetAttributeInElementsByTagAsync("a", "href", "www.test.ru");

foreach (string value in values)

{

       tester.ConsoleMsg(value);

}

Created with the Personal Edition of HelpNDoc: Free EPub and documentation generator