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

Function test_select_textarea

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

Source from the content-addressed store, hash-verified

455
456@pytest.mark.asyncio
457async def test_select_textarea(page, server):
458 await page.goto(server.PREFIX + "/input/textarea.html")
459 textarea = await page.query_selector("textarea")
460 await textarea.evaluate('textarea => textarea.value = "some value"')
461 await textarea.select_text()
462 assert await page.evaluate("() => window.getSelection().toString()") == "some value"
463
464
465@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

query_selectorMethod · 0.45

Tested by

no test coverage detected