selectPaymentPeriod: function()

in Pages/CustomerLoans.js [178:187]


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