Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/playwright-python
/ content
Method
content
playwright/_impl/_page.py:542–543 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
540
return
self._main_frame.url
541
542
async
def
content(self) -> str:
543
return
await self._main_frame.content()
544
545
async
def
set_content(
546
self,
Callers
15
test_should_not_follow_redirects_when_max_redirects_is_set_to_0_in_route_fetch
Function · 0.45
test_set_content_should_work
Function · 0.45
test_set_content_should_work_with_domcontentloaded
Function · 0.45
test_set_content_should_work_with_doctype
Function · 0.45
test_set_content_should_work_with_HTML_4_doctype
Function · 0.45
test_should_fulfill_from_har_with_content_in_a_file
Function · 0.45
test_should_round_trip_har_zip
Function · 0.45
test_should_produce_extracted_zip
Function · 0.45
test_should_update_har_zip_for_context
Function · 0.45
test_should_update_har_zip_for_page
Function · 0.45
test_should_update_har_zip_for_page_with_different_options
Function · 0.45
test_should_update_extracted_har_zip_for_page
Function · 0.45
Calls
no outgoing calls
Tested by
15
test_should_not_follow_redirects_when_max_redirects_is_set_to_0_in_route_fetch
Function · 0.36
test_set_content_should_work
Function · 0.36
test_set_content_should_work_with_domcontentloaded
Function · 0.36
test_set_content_should_work_with_doctype
Function · 0.36
test_set_content_should_work_with_HTML_4_doctype
Function · 0.36
test_should_fulfill_from_har_with_content_in_a_file
Function · 0.36
test_should_round_trip_har_zip
Function · 0.36
test_should_produce_extracted_zip
Function · 0.36
test_should_update_har_zip_for_context
Function · 0.36
test_should_update_har_zip_for_page
Function · 0.36
test_should_update_har_zip_for_page_with_different_options
Function · 0.36
test_should_update_extracted_har_zip_for_page
Function · 0.36