Example #1
0
        // =============================================
        // BY LOCATOR SECTION
        // =============================================

        /// <summary>
        /// Causes WebDriver to wait for X amount of time (in seconds) on a user specified locator.
        /// X = Framework's configured Implicit Wait time (in seconds)
        /// "Presence" means Existance AND Visibility (also means element's height and width is greater than 0!)
        /// </summary>
        public IWebElement WaitForElementToBePresent(By locator)
        {
            try
            {
                return(wait.Until <IWebElement>(Expectations.ElementIsClickable(locator)));
            }
            catch (Exception)
            {
                return(null);
            }
        }