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

Method save_screenshot

tests/ui/conftest.py:409–412  ·  view source on GitHub ↗
(self, fname="screenshot.png")

Source from the content-addressed store, hash-verified

407 x.set_checked(checked)
408
409 def save_screenshot(self, fname="screenshot.png"):
410 path = os.path.join(ROOT_DIR, fname)
411 with open(path, "wb") as f:
412 f.write(self.window.grab_window_as_png())
413
414 def _flatten(self, result):
415 if self._multi_result or len(result) != 1:

Callers 3

waitMethod · 0.95
wait_for_itemMethod · 0.95
wait_forMethod · 0.95

Calls 2

joinMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected