0
을 UITestControl, 나는이 작업을 수행 할 수 있습니다캐스트 문자열을 간결하게 유지하기 위해
UIRvWindow AppWin = new UIRvWindow();
UITestControl path = new UITestControl();
path = AppWin.UnderlyingClass1.UnderLyingClass2;
IEnumerable<WpfButton> collection = path.GetChildren().OfType<WpfButton>();
foreach(WpfButton button in collection)
{
System.Diagnostics.Trace.WriteLine(button.FriendlyName + " - " + button.DisplayText + " - " + button.Name + " - " + button.AutomationId);
}
이 잘 작동하지만이 할 수 있기를 원하는 : 기본적으로
UIRvWindow AppWin = new UIRvWindow();
UITestControl path = new UITestControl();
string x = "AppWin.UnderlyingClass1.UnderLyingClass2";
path = x;
IEnumerable<WpfButton> collection = path.GetChildren().OfType<WpfButton>();
foreach(WpfButton button in collection)
{
System.Diagnostics.Trace.WriteLine(button.FriendlyName + " - " + button.DisplayText + " - " + button.Name + " - " + button.AutomationId);
}
를, 내가 가지고 문자열 목록 및 하나씩 차례로 실행하고 싶습니다. 이 일을 할 수있는 방법이 있습니까?
여기에 사용 된 언어에 – pcnate
태그를 지정하고 싶을 수 있습니다. 샘플 코드 게시 : 'AppWin.UnderlyingClass1.UnderLyingClass2'가 도움이 될 것입니다. 로드를 시도 했습니까? –