Gets the current page source content (html)
(self)
| 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""" |
nothing calls this directly
no test coverage detected