WaitUntil

This method is used to forcefully wait the script for some action to be completed or happened. It has multiple methods.


Syntax :

S.WaitUntil.VisibilityOfAllElementsLocatedBy("locator");
S.WaitUntil.InvisibilityOfElementLocated("locator");
S.WaitUntil.AlertPresent();
S.WaitUntil.ElementToBeClickable("locator");
S.WaitUntil.ElementToBeSelected("locator");
S.WaitUntil.FrameToBeAvailableAndSwitchToIt(null);
S.WaitUntil.PresenceOfAllElementsLocatedBy("locator");
S.WaitUntil.TitleContains("title");
S.WaitUntil.TitleIs("title");
S.WaitUntil.PageLoad();