get_computed_style method

get_computed_style

This method is used to get the computed style as it is defined in CSS2.

Returns

The computed style

def get_computed_style(self, element):
    ...
ParameterTypeDescription
elementElementThe element whose style is to be computed. This parameter cannot be null.

get_computed_style

This method is used to get the computed style as it is defined in CSS2.

Returns

The computed style

def get_computed_style(self, element, pseudo_element):
    ...
ParameterTypeDescription
elementElementThe element whose style is to be computed. This parameter cannot be null.
pseudo_elementstrThe pseudo element.

See Also