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

Function test_get_attribute

tests/playwright_tests/test_element_handle.py:528–532  ·  view source on GitHub ↗
(page, server)

Source from the content-addressed store, hash-verified

526
527@pytest.mark.asyncio
528async def test_get_attribute(page, server):
529 await page.goto(server.PREFIX + "/dom.html")
530 handle = await page.query_selector("#outer")
531 assert await handle.get_attribute("name") == "value"
532 assert await page.get_attribute("#outer", "name") == "value"
533
534
535@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

query_selectorMethod · 0.45

Tested by

no test coverage detected