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

wdio-chromedriver-service

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wdio-chromedriver-service

WebdriverIO service to start & stop ChromeDriver

  • 8.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
213K
increased by16.2%
Maintainers
2
Weekly downloads
 
Created

What is wdio-chromedriver-service?

The wdio-chromedriver-service is a WebdriverIO service that provides a simple way to run ChromeDriver seamlessly when running tests with WebdriverIO. It eliminates the need to manually start and stop the ChromeDriver binary, making the setup process more straightforward and less error-prone.

What are wdio-chromedriver-service's main functionalities?

Automatic ChromeDriver Management

This feature allows you to automatically manage the ChromeDriver lifecycle. The service will start the ChromeDriver binary before the tests begin and stop it after the tests are completed. This eliminates the need for manual setup and teardown of the ChromeDriver.

const { remote } = require('webdriverio');

const options = {
    capabilities: {
        browserName: 'chrome'
    },
    services: ['chromedriver']
};

async function main() {
    const browser = await remote(options);
    await browser.url('https://example.com');
    console.log(await browser.getTitle());
    await browser.deleteSession();
}

main();

Custom ChromeDriver Options

This feature allows you to customize the ChromeDriver options such as specifying a custom port or log file. This can be useful for debugging or when running multiple instances of ChromeDriver.

const { remote } = require('webdriverio');

const options = {
    capabilities: {
        browserName: 'chrome'
    },
    services: ['chromedriver'],
    chromedriver: {
        port: 9515,
        logFileName: 'wdio-chromedriver.log'
    }
};

async function main() {
    const browser = await remote(options);
    await browser.url('https://example.com');
    console.log(await browser.getTitle());
    await browser.deleteSession();
}

main();

Other packages similar to wdio-chromedriver-service

Keywords

FAQs

Package last updated on 14 Feb 2023

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