public InteractAutomationElementResponse HandleInteractAutomationElementRequest(InteractAutomationElementRequest request)
        {
            var automationElementWrapper = _automationElementRepository.Get(request.WinDriverElementId);

            IExecutable executable = null;

            if (request.Action == Click || request.Action == DoubleClick || request.Action == ClickAtClickablePoint ||
                request.Action == GetText || request.Action == MoveMouse || request.Action == RightClick)
            {
                executable = ActionFactory.Get(request.Action, automationElementWrapper.AutomationElement);
            }

            if (request.Action == SendKeys)
            {
                executable = ActionFactory.Get(request.Action, automationElementWrapper.AutomationElement, request.Value);
            }

            return(new InteractAutomationElementResponse("Action was performed successfully", executable.Execute()));
        }
 public InteractAutomationElementResponse Post([FromBody] InteractAutomationElementRequest request)
 {
     return(Services.AutomationElement.HandleInteractAutomationElementRequest(request));
 }