public WebDriverDownloader(Browser browser, int webDriverWaitTime = 200, LoginHandler loginHandler = null, Option option = null)
        {
            _webDriverWaitTime = webDriverWaitTime;
            _browser           = browser;
            _option            = option ?? new Option();
            Login = loginHandler;

            if (browser == Browser.Firefox && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                Task.Factory.StartNew(() =>
                {
                    while (!_isDisposed)
                    {
                        IntPtr maindHwnd = WindowsFormUtil.FindWindow(null, "plugin-container.exe - 应用程序错误");
                        if (maindHwnd != IntPtr.Zero)
                        {
                            WindowsFormUtil.SendMessage(maindHwnd, WindowsFormUtil.WmClose, 0, 0);
                        }
                        Thread.Sleep(500);
                    }
                });
            }
        }
 public WebDriverDownloader(Browser browser, LoginHandler loginHandler) : this(browser, 200)
 {
     Login = loginHandler;
 }
 public WebDriverDownloader(Browser browser, LoginHandler loginHandler) : this(browser, 200, loginHandler, null)
 {
 }