node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป


NGrid Gas - Get Accounts for Login

The NGrid Gas website allows access to several accounts for a given customer login. These accounts are accessible after logging in by clicking the Choose Account button in the upper right hand corner of the screen. After clicking choose account, the website presents a table where each row is an account. For each row in the table, this module extracts the following fields:

  • accountNumber
  • SWERowId
  • SWEField

The table displays at most 25 rows. For logins with more than 25 accounts, the accounts are paginated across several pages. To see the next page you can click the next arrow in the upper right hand corner of the table. This module automatically iterates over all pages, extracting the three fields above for each row on each page