SetAttributeInElementAsync
Описание: метод вставляет атрибут со значением в указанный элемент
Синтаксис:
SetAttributeInElementAsync(string by, string locator, string attribute, string value)
SetAttributeInElementAsync(Locator locator, string attribute, string value)
Возвращаемое значение: отсутствует
Пример:
await tester.SetAttributeInElementAsync(Tester.BY_CSS, "#auth > h2", "name", "test");
await tester.SetAttributeInElementAsync(Tester.BY_XPATH, "//div[@id='auth']//h2", "name", "test");
await tester.SetAttributeInElementAsync(tester.GetLocator("locatorName"), "name", "test");
Created with the Personal Edition of HelpNDoc: Easy EPub and documentation editor