GetStyleFromElementAsync

Parent Previous Next

GetStyleFromElementAsync

Description: the method returns the style of the element from the specified property

Syntax: GetStyleFromElementAsync(string by, string locator, string property)

Return value: string


Example:

string style = await tester.GetStyleFromElementAsync(Tester.BY_CSS, "#auth", "padding");


string style = await tester.GetStyleFromElementAsync(Tester.BY_XPATH, "//div[@id='auth']", "position");

Created with the Personal Edition of HelpNDoc: Free Web Help generator