Chrome启用无界面浏览模式时,自定义插件是没法加载的,会报以下错误:
selenium.common.exceptions.WebDriverException: Message: unknown error: failed to wait for extension background page to load: chrome-extension://cdkhikphdegmclnacdiafejfhgfobbie/_generated_background_page.html
from unknown error: page could not be found: chrome-extension://cdkhikphdegmclnacdiafejfhgfobbie/_generated_background_page.html
(Driver info: chromedriver=2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926),platform=Linux 4.18.0-17-generic x86_64)