Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoDriver: We can use get, but we can't get back control. #2025

Open
boludoz opened this issue Sep 20, 2024 · 0 comments
Open

NoDriver: We can use get, but we can't get back control. #2025

boludoz opened this issue Sep 20, 2024 · 0 comments

Comments

@boludoz
Copy link

boludoz commented Sep 20, 2024

    async def get_connection(self) -> tab.Tab:
        """Retrieve the connection without navigating to a new URL.

        :return: Tab connection
        """
        # First tab from browser.tabs
        connection: tab.Tab = next(
            filter(lambda item: item.type_ == "page", self.targets)
        )
        connection.browser = self

        return connection

I propose to incorporate something like that. It has worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant