private bool SetTextOnAutomationIdentification(AutomationIdentifier controlIdentifier, string text, int ordinal,
                                                       AutomationIdentifier parentIdentifier)
        {
            var command = new SetTextCommand
                {
                    AutomationIdentifier = controlIdentifier,
                    Text = text,
                    Ordinal = ordinal,
                    ParentIdentifier = parentIdentifier
                };

            var result = SyncExecuteCommand(command);
            var successResult = result as SuccessResult;
            return successResult != null;
        }
        private bool SetTextOnAutomationIdentification(AutomationIdentifier automationIdentifier, string text)
        {
            var command = new SetTextCommand()
            {
                AutomationIdentifier = automationIdentifier,
                Text = text
            };

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