0.7.3 • Published 5 months ago

@testring/dwnld-collector-crx v0.7.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@testring/dwnld-collector-crx

Installation

npm install @testring/dwnld-collector-crx

How to use

accessing chrome internal page like chrome://downloads is not allowed in headless mode, as a result, checking download results becomes unavaiable. once this chrome extension installed. chrome download items can be accessed within page via localStorage, like this:

const downloadsJSONStr = await browser.execute(() => {
    return localStorage.getItem('_DOWNLOADS_');
})
// the result is already sort ASC by startTime
const downloads = JSON.parse(downloadsJSONStr);

downloads is an array of download items, each item has following properties:

{
    fileName: 'example.pdf',
    filePath: '/Users/username/Downloads/example.pdf',
    state: 'complete',
    startTime: '2021-01-01T00:00:00.000Z',
    state: 'complete',
}
0.7.2

5 months ago

0.7.3

5 months ago

0.7.1

6 months ago

0.7.0

8 months ago

0.6.14-alpha.5

8 months ago

0.6.14-alpha.4

8 months ago

0.6.14-alpha.6

8 months ago

0.6.14-alpha.1

8 months ago

0.6.14-alpha.3

8 months ago

0.6.14-alpha.2

8 months ago

0.6.13

9 months ago

0.6.12

10 months ago