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

Method ok

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

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

(self)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls