/// <summary> /// Waits for a <see cref="IWebElement"/> to not have specific attribute value /// </summary> /// <param name="locator">The <see cref="By"/> locator of the <see cref="IWebElement"/></param> /// <param name="text">The value the <see cref="IWebElement"/> attribute not should equal</param> /// <param name="maxWaitTimeInSeconds">Maximum amount of seconds as <see cref="int"/> to wait for the <see cref="IWebElement"/> to become visible</param> /// <returns><see langword="true"/> if the <see cref="IWebElement"/> attribute value is not a match; otherwise, <see langword="false"/></returns> public static bool WaitUntilAttributeNotEquals(this ISearchContext iSearchContext, By locator, string htmlTagAttribute, string attributeValue, int maxWaitTimeInSeconds = GlobalConstants.MaxWaitTimeInSeconds) { if (!iSearchContext.WaitUntilExists(locator, maxWaitTimeInSeconds)) { return(false); } return(iSearchContext.WaitUntil(ExpectedCondition.ElementAttributeNotEquals(locator, htmlTagAttribute, attributeValue), maxWaitTimeInSeconds)); }