Пример #1
0
        public bool InvokeMessageboxTapAction(string buttonText)
        {
            var automationIdentifier = CreateAutomationIdentifier(buttonText);
            var command = new InvokeControlTapActionCommand
            {
                AutomationIdentifier = automationIdentifier,
                ParentIdentifier     = new AutomationIdentifier("MessageBox", AutomationIdentification.TryElementName)
            };

            var result = SyncExecuteCommand(command);

            return(result is SuccessResult);
        }
Пример #2
0
        public bool InvokeControlTapAction(string controlId, int ordinal, string parentId)
        {
            var controlIdentifier = CreateAutomationIdentifier(controlId);
            var parentIdentifier  = CreateAutomationIdentifier(parentId);

            var command = new InvokeControlTapActionCommand
            {
                AutomationIdentifier = controlIdentifier,
                Ordinal          = ordinal,
                ParentIdentifier = parentIdentifier
            };
            var result = SyncExecuteCommand(command);

            return(result is SuccessResult);
        }
        public bool InvokeControlTapAction(string controlId, int ordinal, string parentId)
        {
            var controlIdentifier = CreateAutomationIdentifier(controlId);
            var parentIdentifier = CreateAutomationIdentifier(parentId);

            var command = new InvokeControlTapActionCommand
                {
                    AutomationIdentifier = controlIdentifier,
                    Ordinal = ordinal,
                    ParentIdentifier = parentIdentifier
                };
            var result = SyncExecuteCommand(command);
            return result is SuccessResult;
        }
        public bool InvokeMessageboxTapAction(string buttonText)
        {
            var automationIdentifier = CreateAutomationIdentifier(buttonText);
            var command = new InvokeControlTapActionCommand
                {
                    AutomationIdentifier = automationIdentifier,
                    ParentIdentifier = new AutomationIdentifier("MessageBox", AutomationIdentification.TryElementName)
                };

            var result = SyncExecuteCommand(command);
            return result is SuccessResult;
        }
 private bool InvokeControlTapActionAutomationIdentifer(AutomationIdentifier automationIdentifier)
 {
     var command = new InvokeControlTapActionCommand()
     {
         AutomationIdentifier = automationIdentifier
     };
     var result = SyncExecuteCommand(command);
     return result is SuccessResult;
 }