SetStyleInElementAsync

Parent Previous Next

SetStyleInElementAsync

Description: the method sets the style of the element

Syntax: SetStyleInElementAsync(string by, string locator, string cssText)

Return value: no return value


Example:

await tester.SetStyleInElementAsync(Tester.BY_XPATH, "//div[@id='auth']", "width: 250px; color: white; background-color: #000000;");


await tester.SetStyleInElementAsync(Tester.BY_CSS, "#auth", "width: 250px; color: white; background-color: #000000;");

Created with the Personal Edition of HelpNDoc: Easily create PDF Help documents