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

Method json

py/selenium/webdriver/common/api_request_context.py:74–80  ·  view source on GitHub ↗

Parse the response body as JSON. Returns: The parsed JSON object.

(self)

Source from the content-addressed store, hash-verified

72 return 200 <= self.status <= 299
73
74 def json(self) -> Any:
75 """Parse the response body as JSON.
76
77 Returns:
78 The parsed JSON object.
79 """
80 return json.loads(self._body)
81
82 def text(self) -> str:
83 """Decode the response body as UTF-8 text.

Callers 4

test_json_parsingFunction · 0.95
test_json_invalid_raisesFunction · 0.95
test_response_jsonFunction · 0.80
test_e2e_json_responseFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_json_parsingFunction · 0.76
test_json_invalid_raisesFunction · 0.76
test_response_jsonFunction · 0.64
test_e2e_json_responseFunction · 0.64