[Python] SeleniumBase disable download notifications

Discussão em 'Python' iniciado por Stack, Março 1, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using SeleniumBase in headless mode with xvfb support:

    with SB(uc=True, headless=True, xvfb=True) as sb:
    ...


    I have no Chrome window but sometimes I can see Download complete messages. What I've tried:

    with SB(uc=True, headless=True, xvfb=True, chromium_arg='--disable-notifications', disabled_features='DownloadBubble,DownloadBubbleV2') as sb:
    ...


    But it didn't change anything. After that I've found that Chrome has param download_bubble .partial_view_enabled which seems to be what I need:

    // A boolean specifying whether the partial download bubble (which shows up
    // automatically when downloads are complete) should be enabled. True (partial
    // bubble will show automatically) by default.


    How can I disable it in SeleniumBase?

    Continue reading...

Compartilhe esta Página