Merge pull request #60 from chuanxd/feature/disable-translate

Disabled Google Translate by default
master
Max 2023-05-12 22:48:21 +08:00 committed by GitHub
commit 1fed8f622f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ def load_chromdriver_uc(webdriver_path, adblock_plus_enable, headless):
options.add_argument("--no-sandbox"); options.add_argument("--no-sandbox");
options.add_argument("--password-store=basic") options.add_argument("--password-store=basic")
options.add_experimental_option("prefs", {"credentials_enable_service": False, "profile.password_manager_enabled": False}) options.add_experimental_option("prefs", {"credentials_enable_service": False, "profile.password_manager_enabled": False, "translate":{"enabled": False}})
caps = options.to_capabilities() caps = options.to_capabilities()
caps["unhandledPromptBehavior"] = u"accept" caps["unhandledPromptBehavior"] = u"accept"