I am struggling to get the attribute value of a web element which is actually hidden on the page. I am using python+selenium and I do not nkow how to get this value. Please help! For your reference, here is a sample python code that I have written:
AttValueBeforeUpdateButtonAppears = WebDriverWait(self.driver, 15).until(lambda driver:self.driver.find_element_by_css_selector(CustomizeYourCheck.UPDATE_BUTTON_HIDDEN).get_attribute('style'))
print AttValueBeforeUpdateButtonAppears
self.assertIn("hidden", AttValueBeforeUpdateButtonAppears)