AutomationElement aeButton = rootElement.FindFirst(TreeScope.Children,
new PropertyCondition(AutomationElement.ClassNameProperty,
"AfxWnd42"));
WindowPattern vpTextBox1 = (WindowPattern)aeButton.GetCurrentPattern(WindowPattern.Pattern);
//每个BasePattern都试了,都报错呢.//AfxWnd42是一个按钮组,浩方平台上的.
new PropertyCondition(AutomationElement.ClassNameProperty,
"AfxWnd42"));
WindowPattern vpTextBox1 = (WindowPattern)aeButton.GetCurrentPattern(WindowPattern.Pattern);
//每个BasePattern都试了,都报错呢.//AfxWnd42是一个按钮组,浩方平台上的.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货