TestAutomationEssentials.Selenium.BrowserElement.WaitToDisappear C# (CSharp) Method

WaitToDisappear() public method

Waits for the current element to disappear. That is, either become invisible or completely removed from the DOM
The current element hasn't been disappeared for the specified period
public WaitToDisappear ( int seconds = DefaultWaitTimeout ) : void
seconds int Timeout in seconds to wait for the element to disappear
return void
        public void WaitToDisappear(int seconds = DefaultWaitTimeout)
        {
            Wait.While(() => Displayed, seconds.Seconds(), "Element '{0}' still appears after '{1}' seconds", Description, seconds);
        }