public void Start() { if (true == this.IsRecording) { throw new InvalidOperationException(); } if (0 == IE.Count) { InternetExplorer ie = IE.NewBrowser(IE.AboutBlankSchema); IE.WindowMaximize(ie); ie.GoHome(); } if (null == this.form) { this.form = new RecordingForm() { Recorder = this, }; } IE.WaitForReadyStateComplete(); IE.Activate(); form.Show(); this.IsRecording = true; this.AttachBrowser(); this.OnStarted(); Uri url = new Uri(IE.ActiveBrowser.LocationURL); UriBuilder ub = new UriBuilder(); ub.Scheme = url.Scheme; ub.Host = url.Host; ub.Port = url.Port; // this.OnCommandRecording("setBaseUrl", ub.ToString()); this.OnCommandRecording("open", url.PathAndQuery); }