White's SearchCriteria to UIA's Condition transiton

Nov 18, 2012 at 10:20 AM

White has very convenient class SearchCriteria which much more simpler and shorter vs UIA Condition. But does White has a way to convert SearchCriteria to UIA's condition?



// <--> how to switch between them?

Condition condition = new AndCondition(
	new PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Window),
	new PropertyCondition(AutomationElement.AutomationIdProperty, "131")