Close the current target (ie: tab,window,page)
(self)
| 898 | return remote_object, exception_details |
| 899 | |
| 900 | async def close(self): |
| 901 | """Close the current target (ie: tab,window,page)""" |
| 902 | if self.target and self.target.target_id: |
| 903 | await self.send( |
| 904 | cdp.target.close_target(target_id=self.target.target_id) |
| 905 | ) |
| 906 | await self.aclose() |
| 907 | await asyncio.sleep(0.1) |
| 908 | |
| 909 | async def get_window(self) -> Tuple[ |
| 910 | cdp.browser.WindowID, cdp.browser.Bounds |