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:

FRAMEElement frame = await tester.GetFrameAsync(0);

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


await frame.SetStyleInElementAsync(Tester.BY_CSS, "#auth", "background-color: #000000;");

Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator