selectTemporalUnitForTerm: function()

in Pages/CustomerLoans.js [163:172]


    selectTemporalUnitForTerm: function (temporalUnit) {
        browser.executeScript("arguments[0].scrollIntoView();", termSelect.getWebElement());
        browser.wait(EC.visibilityOf(termSelect), 2000);
        termSelect.click();
        browser.wait(EC.visibilityOf($(".mat-option")), 5000);
        opt = element(by.cssContainingText('.mat-option', temporalUnit));
        browser.executeScript("arguments[0].scrollIntoView();", opt.getWebElement());
        browser.wait(EC.elementToBeClickable(opt), 2000);
        opt.click();
    },