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:

FRAMEElement frame = await tester.GetFrameAsync(0);

string style = await frame.GetStyleFromElementAsync(Tester.BY_CSS, "#auth > h2", "width");


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

Created with the Personal Edition of HelpNDoc: Create HTML Help, DOC, PDF and print manuals from 1 single source