MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_content

Method get_content

seleniumbase/undetected/cdp_driver/tab.py:918–926  ·  view source on GitHub ↗

Gets the current page source content (html)

(self)

Source from the content-addressed store, hash-verified

916 return window_id, bounds
917
918 async def get_content(self):
919 """Gets the current page source content (html)"""
920 doc: cdp.dom.Node = await self.send(cdp.dom.get_document(-1, True))
921 return await self.send(
922 cdp.dom.get_outer_html(
923 backend_node_id=doc.backend_node_id,
924 include_shadow_dom=True,
925 )
926 )
927
928 async def maximize(self):
929 """Maximize page/tab/window"""

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45
get_documentMethod · 0.45

Tested by

no test coverage detected