Пример #1
0
 public TextBlock(AutomationElement automationElement)
 {
     automationElement.ThrowIfNull("automationElement").ThrowInvalidOperationExceptionIfNotOf(ControlType.Text);
     _automationElement = automationElement;
 }
Пример #2
0
 public ListItem(AutomationElement automationElement)
 {
     automationElement.ThrowIfNull("automationElement").ThrowInvalidOperationExceptionIfNotOf(ControlType.ListItem);
     _automationElement = automationElement;
 }