<NME> massad.ts
<BEF> import BeinleumiScraper, { createLoginFields, waitForPostLogin, getPossibleLoginResults } from './beinleumi';
import { ScraperCredentials } from './base-scraper';


class MassadScraper extends BeinleumiScraper {
  BASE_URL = 'https://online.bankmassad.co.il';

  LOGIN_URL = `${this.BASE_URL}/MatafLoginService/MatafLoginServlet?bankId=MASADPRTAL&site=Private&KODSAFA=HE`;

  TRANSACTIONS_URL = `${this.BASE_URL}/wps/myportal/FibiMenu/Online/OnAccountMngment/OnBalanceTrans/PrivateAccountFlow`;

  getLoginOptions(credentials: ScraperCredentials) {
    return {
      loginUrl: `${this.LOGIN_URL}`,
      fields: createLoginFields(credentials),
      submitButtonSelector: '#continueBtn',
      postAction: async () => waitForPostLogin(this.page),
      possibleResults: getPossibleLoginResults(),
    };
  }
}

export default MassadScraper;

<MSG> Made a base class for Leumi and Massad as requested in the PR

<DFF> @@ -1,23 +1,12 @@
-import BeinleumiScraper, { createLoginFields, waitForPostLogin, getPossibleLoginResults } from './beinleumi';
-import { ScraperCredentials } from './base-scraper';
+import BeinleumiGroupBaseScraper from './base-beinleumi-group';
 
 
-class MassadScraper extends BeinleumiScraper {
+class MassadScraper extends BeinleumiGroupBaseScraper {
   BASE_URL = 'https://online.bankmassad.co.il';
 
   LOGIN_URL = `${this.BASE_URL}/MatafLoginService/MatafLoginServlet?bankId=MASADPRTAL&site=Private&KODSAFA=HE`;
 
   TRANSACTIONS_URL = `${this.BASE_URL}/wps/myportal/FibiMenu/Online/OnAccountMngment/OnBalanceTrans/PrivateAccountFlow`;
-
-  getLoginOptions(credentials: ScraperCredentials) {
-    return {
-      loginUrl: `${this.LOGIN_URL}`,
-      fields: createLoginFields(credentials),
-      submitButtonSelector: '#continueBtn',
-      postAction: async () => waitForPostLogin(this.page),
-      possibleResults: getPossibleLoginResults(),
-    };
-  }
 }
 
 export default MassadScraper;

Made a base class for Leumi and Massad as requested in the PR