【发布时间】:2017-12-30 22:08:38
【问题描述】:
我正在通过 ProcessStartInfo 启动需要管理员权限的 Windows 应用程序。
ProcessStartInfo app= new ProcessStartInfo(Path.exe);
app.UseShellExecute = true;
app.Verb = "runas";
MainWindow= ApplicationUnderTest.Launch(app);
启动运行正常,但在我以管理员身份运行 VS 之前无法识别控件。如何在不以管理员身份启动 VS 的情况下成功运行测试方法?
【问题讨论】:
标签: c# automation coded-ui-tests