🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

browser-test-helpers

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-test-helpers

A small set of generic test helpers for browser interaction tests.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

browser-test-helpers

A small set of generic test helpers for browser interaction tests.

api

var help = new BrowserTestHelpers()

help.click(element[, options])

Simulates a click event on the given element.

var button = document.querySelector('button')
help.click(button, { bubbles: false })

help.fillIn(element, value)

Fills in an field with the given value.

var input = document.querySelector('input')
help.fillIn(input, 'Testing')

help.triggerEvent(element, type[, options])

Triggers the type of event on the given element.

var input = document.querySelector('input')
help.triggerEvent(input, 'focus')

help.keyEvent(element, type[, options])

Triggers a KeyboardEvent on the given element.

var el = document.getElementById('bear')
help.keyEvent(el, 'keypress', { keyCode: 13, shiftKey: true })

license

(c) 2015 Kyle Robinson Young. MIT License

Keywords

browser

FAQs

Package last updated on 04 May 2015

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