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

chromeos-webdriver-server

v1.0.4

Published

A WebDriver server that pushes URLs to ChromeOS devices, built on generic-webdriver-server.

Downloads

27

Readme

ChromeOS WebDriver Server

A WebDriver server for ChromeOS, implementing the subset of the WebDriver protocol necessary for Karma. Add ChromeOS to your Selenium grid!

Part of the Generic WebDriver Server family.

Installation

npm install --save-dev generic-webdriver-server chromeos-webdriver-server

Usage

First, please refer to the "Setup" doc for Generic WebDriver Server. That will explain how to set up Selenium to talk to Generic WebDriver Servers, as well as how to set server parameters.

In the command-line for the Selenium node, set the following Java system properties:

  • genericwebdriver.browser.name: We recommend the value "chromeos". See also notes in the "Setup" doc.
  • genericwebdriver.backend.exe: The path to the executable, such as node_modules/chromeos-webdriver-server/chromeos-webdriver-server.js
  • genericwebdriver.backend.params.hostname: The hostname or IP address of the ChromeOS device, with optional SSH port number. If omitted, this must be provided in the client's desired capabilities instead. (See below.)

Supported parameters

This backend supports the following parameters:

  • hostname: (required) The hostname or IP address of the ChromeOS device, with optional SSH port number.
  • username: The username to use when logging in via SSH (defaults to root).
  • private-key: The path to the private key to use when logging in via SSH (defaults to ~/.ssh/chromeos_testing_rsa).
  • fetch-private-key: If true, fetch the SSH private key if it doesn't exist at the path specified by private-key (defaults to true).
  • private-key-url: The URL from which to fetch a base64-encoded private key (defaults to the source code URL of the private key used by default in all dev-mode ChromeOS devices).

Sending command-line arguments to Chrome

In addition to the parameters above, this server supports passing on extra command line arguments to Chrome. On the server command line, these are placed at the end of the command and are separated from server parameters by "--".

These Chrome arguments can be set in the client's desired capabilities under generic:args. For example:

caps = {
  'browserName': 'chromeos',
  'version': 'Pixelbook',
  'generic:args': [
    # Appended to the server command after "--", then passed on to the Chrome
    # instance instead of being handled by the server.
    '--autoplay-policy=no-user-gesture-required',
  ],
}

See also related notes in the "Setup" doc.

Device setup

See device-setup.md for details on setting up a ChromeOS device in dev mode and enabling SSH access.

How it works

See how-it-works.md for details.

Tunneling to a ChromeOS device on another network

See tunneling.md for details.

Using the CLI

In addition to running a ChromeOS node in Selenium, this package offers a CLI for directing a ChromeOS device to a specific URL. For example, if installed globally with npm install -g chromeos-webdriver-server:

chromeos-webdriver-cli --hostname=192.168.1.42 --url=https://www.google.com/