def get_property_value(self, selector, property, by=By.CSS_SELECTOR,<EOL>timeout=settings.SMALL_TIMEOUT):
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:<EOL><INDENT>timeout = self.__get_new_timeout(timeout)<EOL><DEDENT>if page_utils.is_xpath_selector(selector):<EOL><INDENT>by = By.XPATH<EOL><DEDENT>if page_utils.is_link_text_selector(selector):<EOL><INDENT>selector = page_utils.get_link_text_from_selector(selector)<EOL>by = By.LINK_TEXT<EOL><DEDENT>self.wait_for_ready_state_complete()<EOL>page_actions.wait_for_element_present(<EOL>self.driver, selector, by, timeout)<EOL>try:<EOL><INDENT>selector = self.convert_to_css_selector(selector, by=by)<EOL><DEDENT>except Exception:<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>" % (<EOL>selector, by))<EOL><DEDENT>selector = re.escape(selector)<EOL>selector = self.__escape_quotes_if_needed(selector)<EOL>script = ("""<STR_LIT>"""<EOL>% (selector, property))<EOL>value = self.execute_script(script)<EOL>if value is not None:<EOL><INDENT>return value<EOL><DEDENT>else:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>
Returns the property value of a page element's computed style.
            Example:
                opacity = self.get_property_value("html body a", "opacity")
                self.assertTrue(float(opacity) > 0, "Element not visible!")