public TextBlock(AutomationElement automationElement) { automationElement.ThrowIfNull("automationElement").ThrowInvalidOperationExceptionIfNotOf(ControlType.Text); _automationElement = automationElement; }
public ListItem(AutomationElement automationElement) { automationElement.ThrowIfNull("automationElement").ThrowInvalidOperationExceptionIfNotOf(ControlType.ListItem); _automationElement = automationElement; }