You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@wdio/repl

Package Overview
Dependencies
Maintainers
3
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/repl

A WDIO helper utility to provide a repl interface for WebdriverIO

9.16.2
latest
Source
npmnpm
Version published
Weekly downloads
1.5M
7.27%
Maintainers
3
Weekly downloads
 
Created

What is @wdio/repl?

@wdio/repl is a package that provides a Read-Eval-Print Loop (REPL) interface for WebdriverIO. It allows users to interactively run WebDriver commands in a Node.js REPL environment, making it easier to debug and test WebDriver scripts.

What are @wdio/repl's main functionalities?

Interactive Command Execution

This feature allows users to start a REPL session with a WebDriver instance, enabling them to execute WebDriver commands interactively.

const { remote } = require('webdriverio');
const repl = require('@wdio/repl');

(async () => {
    const browser = await remote({
        capabilities: { browserName: 'chrome' }
    });

    await repl.start(browser);
})();

Custom REPL Commands

This feature allows users to define custom commands that can be executed within the REPL session, providing more flexibility and control over the WebDriver instance.

const { remote } = require('webdriverio');
const repl = require('@wdio/repl');

(async () => {
    const browser = await remote({
        capabilities: { browserName: 'chrome' }
    });

    const customCommands = {
        'screenshot': async () => {
            const screenshot = await browser.takeScreenshot();
            console.log('Screenshot taken:', screenshot);
        }
    };

    await repl.start(browser, customCommands);
})();

Other packages similar to @wdio/repl

Keywords

webdriverio

FAQs

Package last updated on 23 Jun 2025

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