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

Function test_input_value

tests/async/test_element_handle.py:768–776  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

766
767
768async def test_input_value(page: Page, server: Server) -> None:
769 await page.goto(server.PREFIX + "/input/textarea.html")
770 element = await page.query_selector("input")
771 assert element
772 await element.fill("my-text-content")
773 assert await element.input_value() == "my-text-content"
774
775 await element.fill("")
776 assert await element.input_value() == ""
777
778
779async def test_set_checked(page: Page) -> None:

Callers

nothing calls this directly

Calls 4

gotoMethod · 0.45
query_selectorMethod · 0.45
fillMethod · 0.45
input_valueMethod · 0.45

Tested by

no test coverage detected