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

Method body

py/selenium/webdriver/common/api_request_context.py:88–94  ·  view source on GitHub ↗

Return the raw response body bytes. Returns: The response body as bytes.

(self)

Source from the content-addressed store, hash-verified

86 return self._body.decode("utf-8")
87
88 def body(self) -> bytes:
89 """Return the raw response body bytes.
90
91 Returns:
92 The response body as bytes.
93 """
94 return self._body
95
96 def dispose(self) -> None:
97 """Free the response body memory."""

Callers 15

test_body_returns_bytesFunction · 0.95
test_dispose_clears_bodyFunction · 0.95
available_assetsMethod · 0.45
status_ok?Method · 0.45
requestMethod · 0.45
new_request_forMethod · 0.45
mutate_responseMethod · 0.45
==Method · 0.45
WebDriverClass · 0.45
WebDriverClass · 0.45
BiDiClass · 0.45

Calls

no outgoing calls

Tested by 7

test_body_returns_bytesFunction · 0.76
test_dispose_clears_bodyFunction · 0.76
test_head_requestFunction · 0.36
test_response_body_bytesFunction · 0.36
test_response_disposeFunction · 0.36
test_e2e_headFunction · 0.36