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

Function test_locators_clear_should_work

tests/sync/test_locators.py:272–278  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

270
271
272def test_locators_clear_should_work(page: Page, server: Server) -> None:
273 page.goto(server.PREFIX + "/input/textarea.html")
274 button = page.locator("input")
275 button.fill("some value")
276 assert page.evaluate("result") == "some value"
277 button.clear()
278 assert page.evaluate("result") == ""
279
280
281def test_locators_check_should_work(page: Page) -> None:

Callers

nothing calls this directly

Calls 5

gotoMethod · 0.45
locatorMethod · 0.45
fillMethod · 0.45
evaluateMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected