MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / refresh

Method refresh

tests/ui/conftest.py:241–250  ·  view source on GitHub ↗

Re-execute the query once (e.g. after the UI has changed)

(self)

Source from the content-addressed store, hash-verified

239 return ElementQuery(self._app, self._window, self._query + path.split(" "))
240
241 def refresh(self):
242 """
243 Re-execute the query once (e.g. after the UI has changed)
244 """
245 root = self.window.root_element
246 if not self._query:
247 self._results = [root]
248 else:
249 self._results = list(_flatten(_query_children(root, self._query)))
250 self._results = [Element(x) for x in self._results]
251
252 def wait(self, min=1, max=-1, timeout=10.0):
253 """

Callers 4

__init__Method · 0.95
waitMethod · 0.95
wait_for_itemMethod · 0.95
wait_forMethod · 0.95

Calls 3

_flattenFunction · 0.85
_query_childrenFunction · 0.85
ElementClass · 0.85

Tested by

no test coverage detected