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

Function test_select_input

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

Source from the content-addressed store, hash-verified

464
465@pytest.mark.asyncio
466async def test_select_input(page, server):
467 await page.goto(server.PREFIX + "/input/textarea.html")
468 input = await page.query_selector("input")
469 await input.evaluate('input => input.value = "some value"')
470 await input.select_text()
471 assert await page.evaluate("() => window.getSelection().toString()") == "some value"
472
473
474@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

query_selectorMethod · 0.45

Tested by

no test coverage detected