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

Method text

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

Decode the response body as UTF-8 text. Returns: The response body as a string.

(self)

Source from the content-addressed store, hash-verified

80 return json.loads(self._body)
81
82 def text(self) -> str:
83 """Decode the response body as UTF-8 text.
84
85 Returns:
86 The response body as a string.
87 """
88 return self._body.decode("utf-8")
89
90 def body(self) -> bytes:
91 """Return the raw response body bytes.

Callers 3

test_text_decodingFunction · 0.95
test_dispose_clears_bodyFunction · 0.95

Calls 1

decodeMethod · 0.65

Tested by 3

test_text_decodingFunction · 0.76
test_dispose_clears_bodyFunction · 0.76