MCPcopy Index your code
hub / github.com/plotly/dash / style_to_equal

Class style_to_equal

dash/testing/wait.py:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131class style_to_equal:
132 def __init__(self, selector, style, val):
133 self.selector = selector
134 self.style = style
135 self.val = val
136
137 def __call__(self, driver):
138 try:
139 elem = driver.find_element(By.CSS_SELECTOR, self.selector)
140 val = elem.value_of_css_property(self.style)
141 logger.debug("style to equal {%s} => expected %s", val, self.val)
142 return val == self.val
143 except WebDriverException:
144 return False
145
146
147class class_to_equal:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…