public void Quit() { if (IsOpened) { DriverKeeper.GetDriver.Quit(); BrowserClosed?.Invoke(); } }
public void Dispose() { if (IsOpened) { DriverKeeper.GetDriver.Dispose(); BrowserClosed?.Invoke(); } }
protected virtual void OnBrowserClosed() { DriverBuild = false; BrowserClosed?.Invoke(this, null); try { Driver.Quit(); } catch { } }