Gathering detailed insights and metrics for spectron-menu-addon
Gathering detailed insights and metrics for spectron-menu-addon
Gathering detailed insights and metrics for spectron-menu-addon
Gathering detailed insights and metrics for spectron-menu-addon
Provide manipulation of menus in your spectron's specs.
npm install spectron-menu-addon
Typescript
Module System
Node Version
NPM Version
TypeScript (78.59%)
JavaScript (17%)
HTML (4.41%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
69 Commits
3 Forks
3 Watchers
1 Branches
7 Contributors
Updated on Aug 02, 2022
Latest Version
0.4.1
Package Id
spectron-menu-addon@0.4.1
Unpacked Size
9.24 kB
Size
3.64 kB
File Count
9
NPM Version
6.4.1
Node Version
8.11.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Provide functionality to click menu items and get their status within spectron tests.
1npm install --save-dev spectron-menu-addon
1import * as electron from 'electron' 2import * as path from 'path' 3import menuAddon from 'spectron-menu-addon' 4 5const app = menuAddon.createApplication({ args: [path.join(__dirname, '..')], path: electron.toString() }) 6 7menuAddon.clickMenu('Config'); // 'Config' Menu click 8menuAddon.clickMenu('File', 'Save'); // File->Save MenuItem click 9await menuAddon.isItemEnabled('File', 'Reset')) // Verify if MenuItem File->Reset is enabled
https://github.com/SALT-AND-PEPPER/spectron-menu-addon/tree/master/example
Creates application to test
Find menu by labels and click. If the target is nested, it can be specified with variable length arguments.
ex) File -> Save:
1menuAddon.clickMenu('File', 'Save')
Find menu item by labels and return that with following properties:
1{ 2 checked: boolean 3 enabled: boolean 4 label: string 5 visible: boolean 6}
If the target is not found, label is returned as an empty string, all other properties are undefined.
If the target is nested, it can be specified with variable length arguments.
ex) File -> Open:
1await menuAddon.getMenuItem('File', 'Open')
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/26 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More