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

Class class_to_equal

dash/testing/wait.py:147–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146
147class class_to_equal:
148 def __init__(self, selector, classname):
149 self.selector = selector
150 self.classname = classname
151
152 def __call__(self, driver):
153 try:
154 elem = driver.find_element(By.CSS_SELECTOR, self.selector)
155 classname = elem.get_attribute("class")
156 logger.debug(
157 "class to equal {%s} => expected %s", classname, self.classname
158 )
159 return str(classname) == self.classname
160 except WebDriverException:
161 return False

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…