(self)
| 137 | await self.execute_hook('on_browser_created', self.browser) |
| 138 | |
| 139 | async def close(self): |
| 140 | if self.sleep_on_close: |
| 141 | await asyncio.sleep(0.5) |
| 142 | if self.browser: |
| 143 | await self.browser.close() |
| 144 | self.browser = None |
| 145 | if self.playwright: |
| 146 | await self.playwright.stop() |
| 147 | self.playwright = None |
| 148 | |
| 149 | def __del__(self): |
| 150 | if self.browser or self.playwright: |
no outgoing calls
no test coverage detected