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

Function test_input_value

tests/sync/test_element_handle.py:645–653  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

643
644
645def test_input_value(page: Page, server: Server) -> None:
646 page.goto(server.PREFIX + "/input/textarea.html")
647 element = page.query_selector("input")
648 assert element
649 element.fill("my-text-content")
650 assert element.input_value() == "my-text-content"
651
652 element.fill("")
653 assert element.input_value() == ""
654
655
656def 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