私のWatiNアプリケーションは、いくつかのWebページを介して自動化します。
自動化を特定の時点で一時停止し、ユーザーがそう言った場合([続行]ボタンをクリックした場合)にのみ自動化を続行することは可能ですか?
私は自分のプロジェクトで似たようなことをしていますが、これが役立つかもしれません (私はこれを適切にテストしていませんが、正しい方向に向けるかもしれません:D)
private System.Threading.AutoResetEvent arEvent = null;
private System.Windows.Forms.NotifyIcon nIcon = null;
public void WatinBreakpoint()
{
this.arEvent = new System.Threading.AutoResetEvent(false);
this.nIcon = new NotifyIcon();
this.nIcon.Text = "Watin Breakpoint. Double click to continue";
this.notifyIcon.DoubleClick += new EventHandler(notifyIcon_DoubleClick);
this.arEvent.WaitOne();
}
private void notifyIcon_DoubleClick(object sender, EventArgs e)
{
this.arEvent.Set();
}
チッ!