protected void loadingPage()

in src/main/java/platform/qa/base/BasePage.java [65:77]


    protected void loadingPage() {
        wait.withTimeout(Duration.ofSeconds(LOADER_WAIT_TIMEOUT)).withMessage("Loader still exist!")
                .until((ExpectedCondition<Boolean>) driver -> {
                    boolean isDisappeared;
                    try {
                        isDisappeared = loader.getCssValue("display").equals("none");
                    } catch (WebDriverException exception) {
                        isDisappeared = true;
                    }
                    return isDisappeared;
                });
        this.wait = getDefaultWebDriverWait();
    }