/// <summary> /// Waits for a <see cref="IWebElement"/> to not exists in the page DOM /// </summary> /// <param name="locator">The <see cref="By"/> locator of the <see cref="IWebElement"/></param> /// <param name="maxWaitTimeInSeconds">Maximum amount of seconds as <see cref="int"/> to wait for the <see cref="IWebElement"/> to exist</param> /// <returns><see langword="true"/> if the <see cref="IWebElement"/> exists; otherwise, <see langword="false"/></returns> public static bool WaitUntilNotExists(this ISearchContext iSearchContext, By locator, int maxWaitTimeInSeconds = GlobalConstants.MaxWaitTimeInSeconds) { return(iSearchContext.WaitUntil(ExpectedCondition.ElementNotExists(locator), maxWaitTimeInSeconds)); }