/// <summary>
        ///     Waits, until the browser's loaded Url should contain the given value.
        /// </summary>
        /// <param name="wait">The <see cref="WebDriverWait" /> instance, that is used to command the browser for wait.</param>
        /// <param name="urlPart">The URL part the browser is currently displaying.</param>
        /// <exception cref="WebDriverTimeoutException"></exception>
        /// <exception cref="ArgumentException"></exception>
        public static bool UntilUrlContains(
            [NotNull] this WebDriverWait wait,
            [NotNull] string urlPart)

        {
            if (wait == null)
            {
                throw new ArgumentNullException(nameof(wait));
            }
            if (urlPart == null)
            {
                throw new ArgumentNullException(nameof(urlPart));
            }

            wait.Message += " Waited for " +
                            "loaded url " +
                            $"to contain ({urlPart})";

            return(wait.Until(WebDriverWaitConditions.UrlToContain(urlPart)));
        }