public IWebElement GetWebElement(IWebElement element)
        {
            var customWaiter = new CustomWaiters();

            customWaiter.WaitUntilVisible(element);
            return(element);
        }
        public IList <IWebElement> GetWebElements(IList <IWebElement> elements)
        {
            var customWaiter = new CustomWaiters();

            customWaiter.WaitUntilAllElementsVisible(elements);
            return(elements);
        }
        public void CleanField(IWebElement element)
        {
            var customWaiter = new CustomWaiters();

            customWaiter.WaitUntilVisible(element);
            element.Clear();
        }
        public void ClickTheButtonWhenIsVisible(IWebElement element)
        {
            var customWaiter = new CustomWaiters();

            customWaiter.WaitUntilVisible(element);
            element.Click();
        }
        public string GetTextFromElement(IWebElement element)
        {
            var customWaiter = new CustomWaiters();

            customWaiter.WaitUntilVisible(element);
            return(element.Text);
        }
        public void MouseClick(IWebDriver driver, IWebElement element)
        {
            var customWaiters = new CustomWaiters();
            var actions       = new OpenQA.Selenium.Interactions.Actions(driver);

            actions.Click(customWaiters.WaitUntilClickable(element)).Build().Perform();
        }
        public void MoveMouseToElementAndClick(IWebDriver driver, IWebElement element, int x, int y)
        {
            var customWaiters = new CustomWaiters();
            var actions       = new OpenQA.Selenium.Interactions.Actions(driver);

            actions.MoveToElement(customWaiters.WaitUntilClickable(element), x, y).Click().Build().Perform();
        }
        public void InputDataInTheFieldAndPressEnter(IWebElement element, string data)
        {
            var customWaiter = new CustomWaiters();

            customWaiter.WaitUntilVisible(element);
            CleanField(element);
            element.SendKeys(data + Keys.Enter);
        }
        public void ClickTheButtonWhenIsClickable(IWebElement element)
        {
            var customWaiter = new CustomWaiters();

            customWaiter.WaitUntilClickable(element).Click();
        }