protected override string DoImpl()
        {
            var searchValue = this.ExecutedCommand.Parameters["value"].ToString();
            var searchStrategy = this.ExecutedCommand.Parameters["using"].ToString();

            var elementId = this.Automator.Elements.FindElement(CruciatusFactory.Root, searchStrategy, searchValue);
            var webElement = new JsonWebElementContent(elementId);
            return this.JsonResponse(ResponseStatus.Success, webElement);
        }
        protected override string DoImpl()
        {
            var strategy = this.ExecutedCommand.Parameters["using"].ToObject<string>();
            var value = this.ExecutedCommand.Parameters["value"].ToObject<string>();

            var registredId = this.ElementsRegistry.FindElement(WiniumElement.RootElement, new By(strategy, value));

            var webElement = new JsonWebElementContent(registredId);

            return this.JsonResponse(ResponseStatus.Success, webElement);
        }
        protected override string DoImpl()
        {
            var registeredKey = this.ExecutedCommand.Parameters["ID"].ToString();
            var column = int.Parse(this.ExecutedCommand.Parameters["COLUMN"].ToString());
            var row = int.Parse(this.ExecutedCommand.Parameters["ROW"].ToString());

            var dataGrid = this.Automator.Elements.GetRegisteredElement(registeredKey).ToDataGrid();

            var elementId = this.Automator.Elements.RegisterElement(dataGrid.Item(row, column));
            var webElement = new JsonWebElementContent(elementId);

            return this.JsonResponse(ResponseStatus.Success, webElement);
        }
        protected override string DoImpl()
        {
            var strategy = this.ExecutedCommand.Parameters["using"].ToObject<string>();
            var value = this.ExecutedCommand.Parameters["value"].ToObject<string>();

            try
            {
                var registredId = this.ElementsRegistry.FindElement(WiniumElement.RootElement, new By(strategy, value));
                var webElement = new JsonWebElementContent(registredId);

                return this.JsonResponse(ResponseStatus.Success, webElement);
            }
            catch (AutomationException e){
                return this.JsonResponse(ResponseStatus.NoSuchElement, "Couldn't find element : " + value + ", exception: " + e.ToString());
            }

        }
 protected override string DoImpl()
 {
     var elementId = this.Automator.Elements.RegisterElement(CruciatusFactory.FocusedElement);
     var webElement = new JsonWebElementContent(elementId);
     return this.JsonResponse(ResponseStatus.Success, webElement);
 }