node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป


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