MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ok

Method ok

py/selenium/webdriver/common/api_request_context.py:68–70  ·  view source on GitHub ↗

Whether the response status is in the 200-299 range.

(self)

Source from the content-addressed store, hash-verified

66
67 @property
68 def ok(self) -> bool:
69 """Whether the response status is in the 200-299 range."""
70 return 200 <= self.status <= 299
71
72 def json(self) -> Any:
73 """Parse the response body as JSON.

Calls

no outgoing calls