GetAttributeFromElementAsync

Parent Previous Next

GetAttributeFromElementAsync

Description: the method returns a lowercase value from the specified attribute in the selected element

Syntax: GetAttributeFromElementAsync(string by, string locator, string attribute)

Return value: string


Example:

FRAMEElement frame = await tester.GetFrameAsync(0);

string value = await frame.GetAttributeFromElementAsync(Tester.BY_CSS, "input", "name");


string value = await frame.GetAttributeFromElementAsync(Tester.BY_XPATH, "//input", "name");

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