firefox = webdriver.Firefox() element = firefox.find_element_by_css_selector("this element css selector here") attributeValue = element.get_attribute("style")