Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appium-chromium-driver

Package Overview
Dependencies
Maintainers
1
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-chromium-driver

Appium 2.x driver for Chromium-based browsers that work with Chromedriver

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
139K
increased by77.66%
Maintainers
1
Weekly downloads
 
Created
Source

appium-chromium-driver

This is an Appium driver for Chromium-based browsers (like Chrome).

Why does this project exist?

It is already possible to automate Chromium browsers with Chromedriver. In fact, this Appium driver uses Chromedriver under the hood! It is not any kind of fundamentally new or different technology. The advantages of using this project are:

  • Automate Chromium browsers using the Appium server you already have, simply by including this Appium driver.
  • No need to download specific versions of Chromedriver manually. This driver takes care of downloading a version of Chromedriver appropriate for the version of the browser under test.
  • Take advantage of the ecosystem of Appium plugins and features (e.g., image analysis) not available via Chromedriver on its own.

Installation

It's assumed that you have an Appium server (version 2.x+) installed, and that you have a browser compatible with Chromedriver ready to automate on your system. The recommended installation method is to use the Appium extension CLI to install the driver:

appium driver install chromium

Usage

To start an automation session targeting this driver, construct a set of options/capabilities in any WebDriver client that (minimally) includes the following:

CapabilityValue
platformNameOne of macOS, Linux, or Windows (depending on your system
browserNamechrome
appium:automationNameChromium

Use these capabilities to start a new session. (Refer to the documentation for your WebDriver client for the particular syntax used to start a session in that client).

At this point, all WebDriver commands are proxied directly to Chromedriver. This driver does not implement any additional commands. Refer to the Chromedriver documentation or the WebDriver specification for a list of the available automation commands.

Capabilities

In addition to all of the Chromedriver capabilities (nested underneath goog:chromeOptions), this driver supports the following:

CapabilityDescriptionDefault Value
appium:chromedriverPortThe port to start Chromedriver on9515
appium:executableThe absolute path to a chromedriver binary executable. If set, the driver will use that path instead of its own Chromedriver
appium:executableDirA directory within which is found any number of chromedriver binaries. If set, the driver will search this directory for Chromedrivers of the appropriate version to use for your browser
appium:verboseSet to true to add the --verbose flag when starting Chromedriverfalse
appium:logPathThe path to use with the --log-path parameter directing Chromedriver to write its log to that path, if set
appium:disableBuildCheckSet to true to add the --disable-build-check flag when starting Chromedriverfalse
appium:autodownloadEnabledSet to false to disable automatic downloading of Chromedriverstrue
appium:useSystemExecutableSet to true to use the version of Chromedriver bundled with this driver, rather than attempting to download a new one based on the version of the browser under testfalse

Contributing

Contributions to this project are welcome! Feel free to submit a PR on GitHub.

To get set up with a working developer environment, clone the project then run:

npm install

To build the code once:

npm run build

To rebuild the code anytime a file is saved:

npm run dev

Before committing any code, please make sure to run:

npm run lint
npm run test:ci

And make sure everything passes!

More developer scripts can be found in package.json.

Keywords

FAQs

Package last updated on 14 Dec 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc