MCPcopy Create free account
hub / github.com/Vinyzu/Botright / verify_viewport

Method verify_viewport

tests/utils.py:38–42  ·  view source on GitHub ↗
(self, page: Page, width: int, height: int)

Source from the content-addressed store, hash-verified

36 return result
37
38 async def verify_viewport(self, page: Page, width: int, height: int):
39 assert cast(ViewportSize, page.viewport_size)["width"] == width
40 assert cast(ViewportSize, page.viewport_size)["height"] == height
41 assert await page.evaluate("window.innerWidth") == width
42 assert await page.evaluate("window.innerHeight") == height
43
44 async def register_selector_engine(self, selectors: Selectors, *args, **kwargs) -> None:
45 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected