MCPcopy Index your code
hub / github.com/microsoft/playwright-python / binding

Function binding

tests/async/test_page.py:441–443  ·  view source on GitHub ↗
(source: Dict, a: int, b: int)

Source from the content-addressed store, hash-verified

439 binding_source = []
440
441 def binding(source: Dict, a: int, b: int) -> int:
442 binding_source.append(source)
443 return a + b
444
445 await page.expose_binding("add", lambda source, a, b: binding(source, a, b))
446

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected