
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
selenium-grid-status
Advanced tools
A Selenium grid has no public API to get a list of browers attached and available to test with.
This module parses /grid/console and returns a JSON array of the browers that are available.
npm install selenium-grid-status
var grid = require('selenium-grid-status');
grid.available({
host: '10.0.1.25',
}, function(err, available) {
if (err) {
console.log('Error', err);
process.exit(1);
}
console.log(JSON.stringify(available, null, 4));
console.log('There are', available.length, 'browsers attached and ready');
});
This should print something like this:
[
{
"platform": "XP",
"browserName": "firefox",
"maxInstances": "1",
"host": "http://10.0.1.133:5555"
},
{
"platform": "XP",
"browserName": "internet explorer",
"maxInstances": "1",
"host": "http://10.0.1.133:5555"
},
{
"platform": "XP",
"browserName": "firefox",
"maxInstances": "1",
"host": "http://10.0.1.126:5555"
},
{
"platform": "XP",
"browserName": "internet explorer",
"maxInstances": "1",
"host": "http://10.0.1.126:5555"
},
{
"platform": "XP",
"browserName": "firefox",
"maxInstances": "1",
"host": "http://10.0.1.116:5555"
},
{
"platform": "XP",
"browserName": "internet explorer",
"maxInstances": "1",
"host": "http://10.0.1.116:5555"
},
{
"platform": "WINDOWS",
"browserName": "firefox",
"maxInstances": "1",
"host": "http://10.0.1.128:5555"
},
{
"platform": "WINDOWS",
"browserName": "chrome",
"maxInstances": "1",
"host": "http://10.0.1.128:5555"
},
{
"platform": "WINDOWS",
"browserName": "internet explorer",
"maxInstances": "1",
"host": "http://10.0.1.128:5555"
},
{
"platform": "MAC",
"browserName": "chrome",
"maxInstances": "1",
"host": "http://10.0.1.50:5555"
},
{
"platform": "MAC",
"browserName": "firefox",
"maxInstances": "1",
"host": "http://10.0.1.50:5555"
},
{
"platform": "MAC",
"browserName": "chrome",
"maxInstances": "1",
"host": "http://10.0.1.173:5555"
},
{
"platform": "MAC",
"browserName": "firefox",
"maxInstances": "1",
"host": "http://10.0.1.173:5555"
}
]
There are 13 browsers attached and ready
FAQs
Fetch available browsers from a Selenium grid
The npm package selenium-grid-status receives a total of 20 weekly downloads. As such, selenium-grid-status popularity was classified as not popular.
We found that selenium-grid-status demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.