private bool SetValueOnAutomationIdentification(AutomationIdentifier controlIdentifier, string textValue,
                                                        int ordinal, AutomationIdentifier parentIdentifier)
        {
            var command = new SetValueCommand
                {
                    AutomationIdentifier = controlIdentifier,
                    TextValue = textValue,
                    Ordinal = ordinal,
                    ParentIdentifier = parentIdentifier
                };

            var result = SyncExecuteCommand(command);
            var successResult = result as SuccessResult;
            return successResult != null;
        }
        private bool SetValueOnAutomationIdentification(AutomationIdentifier automationIdentifier, string textValue)
        {
            var command = new SetValueCommand()
            {
                AutomationIdentifier = automationIdentifier,
                TextValue = textValue
            };

            var result = SyncExecuteCommand(command);
            var successResult = result as SuccessResult;
            return (successResult != null);
        }