GetAttributeFromElementsByClassAsync

Parent Previous Next

GetAttributeFromElementsByClassAsync

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

Syntax: GetAttributeFromElementsByClassAsync(string _class, string attribute)

Return value: List


Example:

List<string> values = await tester.GetAttributeFromElementsByClassAsync("text-field", "name");

foreach (string value in values)

{

       tester.ConsoleMsg(value);

}

Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad