[Python] Using Opera, Safari, Brave with playwright

Discussão em 'Python' iniciado por Stack, Julho 15, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to use various browsers for my tests, as long as I know, playwright has a browser called webkit which could be the equivalent to Safari and Opera but, is there a way to actually run Safari and other browsers instead of webkit?

    For Chrome and Edge I only had to add chanel="msedge"/chanel="chrome" in the browser creation line, to get it open edge/chrome:

    browser = playwrights.chromium.launch(channel='msedge', headless=False)


    Is there something similar for Opera, Safari, etc.? Or there is another way to use those browsers for the test? I can't find the answer in their documentation.

    Continue reading...

Compartilhe esta Página