Seleniumbase Deaktivieren Sie Download -BenachrichtigungenPython

Python-Programme
Anonymous
 Seleniumbase Deaktivieren Sie Download -Benachrichtigungen

Post by Anonymous »

Ich verwende Seleniumbase im Kopflosenmodus mit XVFB -Unterstützung: < /p>

Code: Select all

with SB(uc=True, headless=True, xvfb=True) as sb:
...
< /code>
Ich habe kein Chromfenster, aber manchmal kann ich vollständige Nachrichten herunterladen. Was ich ausprobiert habe: < /p>
with SB(uc=True, headless=True, xvfb=True, chromium_arg='--disable-notifications', disable_features='DownloadBubble,DownloadBubbleV2') as sb:
...
< /code>
Aber es hat nichts geändert. Danach habe ich festgestellt, dass Chrome Param Download_Bubble .Partial_View_Enabled 
hat, was ich brauche:

Code: Select all

// 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.
Wie kann ich es in Seleniumbase deaktivieren?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post