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

browser-inputs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-inputs

Native browser user input simulators for frontend testing. 0 dependencies, extraced from ember.js

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Browser Inputs

Fast & mature native browser user input simulators for frontend testing. Includes 0 dependencies, extraced from ember.js

Installation:
npm install browser-inputs
import { click } from 'browser-inputs';

await click(document.querySelector('#button'));
await click('#button');
Public API:
  • async blur(target, relatedTarget?)
  • async click(target, mouseEventOptions?);
  • async doubleClick(target, mouseEventOptions?);
  • async fillIn(target, text);
  • fireEvent(element, eventType, options?);
  • async focus(target);
  • async scrollTo(target, x, y);
  • async select(target, optionsToSelect, keepPreviouslySelected = false);
  • async tap(target, mouseEventOptions);
  • async triggerEvent(target, eventType, options);
  • async triggerKeyEvent(target, keyboardEventType, keyCode, keyModifier? = DEFAULT_MODIFIERS);
  • async typeIn(target, text, optionsForDelay?);

FAQs

Package last updated on 30 May 2021

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