New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

browser-monkey

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-monkey - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

7

index.js

@@ -7,2 +7,3 @@ var retry = require('trytryagain');

var sendclick = require('./sendclick');
var debug = require('debug')('browser-monkey');

@@ -60,3 +61,3 @@ var $ =

expect(actualTexts.length, 'expected to have ' + expected.length + ' elements, but found ' + actualTexts.length).to.eql(expected.length);
expect(actualTexts.length, 'expected ' + JSON.stringify(actualTexts) + ' to respectively contain ' + JSON.stringify(expected)).to.eql(expected.length);

@@ -320,2 +321,3 @@ expected.forEach(function (expected, index) {

return this.element(options).then(function(element) {
debug('click', element);
return sendclick(element);

@@ -338,2 +340,3 @@ });

debug('select', element);
element.dispatchEvent(event);

@@ -348,2 +351,3 @@ break;

return this.element(options).then(function(element) {
debug('typeIn', element, text);
return sendkeys(element, text);

@@ -355,2 +359,3 @@ });

return this.element(options).then(function(element) {
debug('typeInHtml', element, html);
return sendkeys.html(element, html);

@@ -357,0 +362,0 @@ });

3

package.json
{
"name": "browser-monkey",
"version": "1.11.0",
"version": "1.11.1",
"description": "reliable dom testing",

@@ -24,2 +24,3 @@ "main": "index.js",

"chai": "3.0.0",
"debug": "2.2.0",
"jquery": "2.1.3",

@@ -26,0 +27,0 @@ "trytryagain": "1.1.0"

@@ -62,2 +62,25 @@ # browser monkey

# debug
Browser monkey will explain what it is doing using [`debug`](https://github.com/visionmedia/debug). It can be extremely useful to see which buttons were clicked, or which text boxes were typed-in. To turn on, follow the [guide](https://github.com/visionmedia/debug#browser-support), or in short:
Put this into your test
```js
window._debug = require('debug');
```
Then type this into your browser console and refresh:
```js
_debug.enable('*');
```
Or to be more specific:
```js
_debug.enable('browser-monkey');
```
# api

@@ -64,0 +87,0 @@

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