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

Method close

seleniumbase/undetected/cdp_driver/tab.py:900–907  ·  view source on GitHub ↗

Close the current target (ie: tab,window,page)

(self)

Source from the content-addressed store, hash-verified

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

Callers 15

mainFunction · 0.80
create_objects_fileFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
create_proxy_extFunction · 0.80

Calls 3

acloseMethod · 0.80
sendMethod · 0.45
sleepMethod · 0.45

Tested by 4

addErrorMethod · 0.64
addFailureMethod · 0.64
tearDownMethod · 0.64