[Python] SeleniumBase usage

Discussão em 'Python' iniciado por Stack, Maio 20, 2025.

  1. Stack

    Stack Membro Participativo

    We have a long-running process that creates RemoteWebDriver and works with Chrome browser; it is destroyed (.close() and .quit()) when needed.

    Now we're planning to migrate to SeleniumBase, and I cannot find a way to destroy it manually when needed because most (if not all) of examples follow the pattern of with SB(...) as sb where scope is contained to it.

    I suppose that I can create SeleniumBase object and store it in global variable for our long-running process, but how do I destroy it and re-create it again? I have no problems with re-creation, it's the question of how to destroy it manually.

    Continue reading...

Compartilhe esta Página