GetAttributeFromElementsByTagAsync

Parent Previous Next

GetAttributeFromElementsByTagAsync

Description: the method returns a list of values of the specified attribute from a set of elements

Syntax: GetAttributeFromElementsByTagAsync(string tag, string attribute)

Return value: List


Example:

List<string> values = await tester.GetAttributeFromElementsByTagAsync("a", "href");

foreach (string value in values)

{

       tester.ConsoleMsg(value);

}

Created with the Personal Edition of HelpNDoc: Easily create EBooks