public void CloseSignInWindowIfItIsPresent() { if (Driver.IsDisplayed(CloseBtnOfSignInWindowBy)) { JsClick(CloseBtnOfSignInWindow); Waits.InvisibilityOfElementLocated(CloseBtnOfSignInWindowBy); } }