SetAttributeInElementAsync

Parent Previous Next

SetAttributeInElementAsync

Description: the method inserts an attribute with a value into the specified element

Syntax: SetAttributeInElementAsync(string by, string locator, string attribute, string value)

Return value: no return value


Example:

await tester.SetAttributeInElementAsync(Tester.BY_CSS, "#auth > h2", "name", "test");


await tester.SetAttributeInElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2", "name", "test");

Created with the Personal Edition of HelpNDoc: Free EPub producer