INNER CODE UNIT · Python

_browser

Vinyzu/Botright · botright/botright.py:156

        _browser = await browser.new_browser(self, _proxy, _faker, flags, **launch_arguments)
        _browser.proxy = _proxy
        _browser.faker = _faker
        _browser.user_action_layer = self.user_action_layer
        _browser.scroll_into_view = self.scroll_into_view
        _browser.mask_fingerprint = self.mask_fingerprint

        await _browser.grant_permissions(["notifications", "geolocation"])
        self.stoppable.append(_browser)

        return _browser

    async def __adel__(self) -> None:
        """
        Cleanup method called when the Botright instance is closed.
        Closes all associated browser instances and stops the Playwright engine.
        """
        for obj in self.stoppable:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…