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

@wdio/repl

Package Overview
Dependencies
Maintainers
3
Versions
225
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 WebdriverIO

  • 5.2.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2M
decreased by-5.8%
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

FAQs

Package last updated on 10 Jan 2019

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