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:
FRAMEElement frame = await tester.GetFrameAsync(0);
await frame.SetAttributeInElementAsync(Tester.BY_CSS, "#auth > h2", "name", "test");
await frame.SetAttributeInElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2", "name", "test");
Created with the Personal Edition of HelpNDoc: Produce Kindle eBooks easily