private static void IfClickAction(IWebDriverFacade facade, KeywordModel model)
        {
            var xPathSelector = string.Format(model.Selector, model.Params.ToArray());
            var element       = facade.FindElement(xPathSelector, 2);

            if (element != null)
            {
                element.Click();
            }
        }
        private static void ClickAction(IWebDriverFacade facade, KeywordModel model)
        {
            var xPathSelector = string.Format(model.Selector, model.Params.ToArray());
            var element       = facade.FindElement(xPathSelector);

            if (element != null)
            {
                element.Click();
            }
            else
            {
                throw new NoSuchElementException(string.Format("Element by path {0} wasn't found.", xPathSelector));
            }
        }
 private static void BackAction(IWebDriverFacade facade, KeywordModel model)
 {
     facade.NavigateBack();
 }
        private static void MoveAndClickAction(IWebDriverFacade facade, KeywordModel model)
        {
            var xPathSelector = string.Format(model.Selector, model.Params.ToArray());

            facade.MoveAndClickToElement(xPathSelector);
        }