npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

selenium-grid-manager

v1.1.6

Published

manage selenium server

Downloads

140

Readme

Selenium-grid-manager

A Selenium Grid 4 server and browser drivers manager for your end to end tests. Great tool for launching Selenium Grid with WebDriver support.

Supported Drivers:

Getting Started

Before starting the installation, you must make sure you have Java and nodeJS installed and configured on your machine.

NB: If you are using windows it is better to use GitBash as a cli terminal.

npm install selenium-grid-manager

Setting

Before starting the selenium server, configure your package.json and download the selenium server jar and driver binaries, it will download the selenium grid server jar, chromedriver, geckodriver and msedgedriver binary.

1- create a configuration file at the root of your project.

NB: the file must be named "selenium-config.js".

module.exports = {
    hubPort: 4444,
    chrome: {
        isActive: true,
        maxSessions: 8,
        version: "100.0.4896.60", // available versions : https://chromedriver.chromium.org/downloads
    },
    firefox: {
        isActive: true,
        maxSessions: 8,
        version: "0.31.0", // available versions : https://github.com/mozilla/geckodriver/releases
    },
    edge: {
        isActive: true,
        maxSessions: 8,
        version: "100.0.1185.39", // available versions : https://developer.microsoft.com/fr-fr/microsoft-edge/tools/webdriver/
    },
    safari: {
        isActive: true, // is active only on macos platform
        maxSessions: 8,
        version: "", // safari driver is available on macOS High Sierra and newer
    }
};

Or, get a copy directly with this command :

cp ./node_modules/selenium-grid-manager/selenium-config.js ./selenium-config.js

2- Add this script in your package.json

 "scripts": {
    "selenium:server": "./node_modules/.bin/selenium"
 }

3- Run this command to install drivers

npm run selenium:server install

Starting the Selenium Server

By default, the selenium server will run on http://localhost:4444/ui/index.html.

npm run selenium:server start

Congratulations, selenium server is listening on port 4444, you can set that in your selenium webdriver client.

Other useful commands

npm run selenium:server restart
npm run selenium:server update
npm run selenium:server clean

Available browsers

By default, Google Chrome, Firefox and Microsoft Edge are available when installed on the host system.