public override int GetHashCode()
 {
     return(ExecutionType.GetHashCode() +
            BrowserType.GetHashCode() +
            ShouldCaptureHttpTraffic.GetHashCode() +
            Size.GetHashCode() +
            IsLighthouseEnabled.GetHashCode() +
            ShouldAutomaticallyScrollToVisible.GetHashCode());
 }
        public override bool Equals(object obj)
        {
            var browserConfiguration = (BrowserConfiguration)obj;

            return(ExecutionType.Equals(browserConfiguration?.ExecutionType) &&
                   BrowserType.Equals(browserConfiguration?.BrowserType) &&
                   ShouldCaptureHttpTraffic.Equals(browserConfiguration?.ShouldCaptureHttpTraffic) &&
                   Size.Equals(browserConfiguration?.Size) &&
                   ShouldAutomaticallyScrollToVisible.Equals(browserConfiguration?.ShouldAutomaticallyScrollToVisible) &&
                   IsLighthouseEnabled.Equals(browserConfiguration?.IsLighthouseEnabled));
        }
 public bool Equals(BrowserConfiguration other) => ExecutionType.Equals(other?.ExecutionType) &&
 BrowserType.Equals(other?.BrowserType) &&
 ShouldCaptureHttpTraffic.Equals(other?.ShouldCaptureHttpTraffic) &&
 Size.Equals(other?.Size) &&
 IsLighthouseEnabled.Equals(other?.IsLighthouseEnabled) &&
 ShouldAutomaticallyScrollToVisible.Equals(other?.ShouldAutomaticallyScrollToVisible);