MCPcopy Create free account
hub / github.com/microsoft/Webwright / validate_action_field

Method validate_action_field

src/webwright/models/base.py:218–222  ·  view source on GitHub ↗
(cls, value: str)

Source from the content-addressed store, hash-verified

216 @field_validator("action_field")
217 @classmethod
218 def validate_action_field(cls, value: str) -> str:
219 normalized = value.strip()
220 if normalized not in ACTION_FIELDS:
221 raise ValueError(f"action_field must be one of: {', '.join(sorted(ACTION_FIELDS))}")
222 return normalized
223
224
225class BaseModel:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected