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)

GetAttributeFromElementAsync(Locator locator, string attribute)

Return value: string


Example:

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

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


string value = await tester.GetAttributeFromElementAsync(tester.GetLocator("locatorName"), "name");

Created with the Personal Edition of HelpNDoc: Qt Help documentation made easy