GetAttributeFromElementsByNameAsync

Parent Previous Next

GetAttributeFromElementsByNameAsync

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

Syntax: GetAttributeFromElementsByNameAsync(string name, string attribute)

Return value: List


Example:

List<string> values = await tester.GetAttributeFromElementsByNameAsync("link", "href");

foreach (string value in values)

{

       tester.ConsoleMsg(value);

}

Created with the Personal Edition of HelpNDoc: Full-featured EPub generator