1. jquery-simulate
jQuery plugin for simulating browser mouse and keyboard events
jquery-simulate
Package: jquery-simulate
Created by: jquery
Last modified: Fri, 06 May 2022 17:35:10 GMT
Version: 1.0.2
Downloads: 7,381
Repository: https://github.com/jquery/jquery-simulate

Install

npm install jquery-simulate
yarn add jquery-simulate

jQuery.simulate()

Simulate events to help unit test user interactions.

Project Status

jquery-simulate is in use by projects of the jQuery Foundation, but isn't under active development. Usually issues are addressed by members of the jQuery UI team when they're affected, while other pull requests linger and get stale. We hesitate to put more time into this project, since its future is unclear.

Specifically we're hoping for the WebDriver API to become a much better solution. We're currently experimenting with that, via Intern on PEP).

That said, this project is stable and should work fine. Just keep the above in mind before using it.

How to build

If you don't yet have grunt installed:

 npm install -g grunt-cli

Then:

 npm install
grunt

How to test

Open the test/index.html in a browser.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code