Windows フォームで形成された Windows アプリケーションをテストしたいと考えています。ライブラリ AutomationElements を使用することにしました。
問題は、それを適切に使用する方法がわからないことです。
例: AutomationElement で処理しているテキスト ボックスにどのように書き込むことができますか?
コードは次のようになります。
var processStartInfo = new ProcessStartInfo(SATELITE_PATH);
var pSatelite = Process.Start(processStartInfo);
pSatelite.WaitForInputIdle();
Delay(2);
satelite = AutomationElement.RootElement.FindChildByProcessId(pSatelite.Id);
AutomationElement loginUser = satelite.FindDescendentByIdPath(new[] {"frmLogin", "txtUserName"});
loginUser に User を書きたいと思います。どうすればいいですか?
本当にありがとう!