Socket
Socket
Sign inDemoInstall

min-wd

Package Overview
Dependencies
3
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.5 to 1.0.0

12

package.json
{
"name": "min-wd",
"version": "0.4.5",
"version": "1.0.0",
"description": "Minimal WebDriver that pipes stdin to browsers",

@@ -22,3 +22,3 @@ "keywords": [

"scripts": {
"test": "jslint --color './**/*.js'"
"test": "jslint --color \"**/*.js\""
},

@@ -30,8 +30,8 @@ "repository": {

"dependencies": {
"through": "^2.3.4",
"listen": "^1.0.0",
"brout": "~0.2.0"
"through": "^2.3",
"listen": "^1.0",
"brout": "^1.0"
},
"devDependencies": {
"jslint": "~0.3.1"
"jslint": "^0.6"
},

@@ -38,0 +38,0 @@ "files": [

@@ -93,3 +93,3 @@ # Minimal WebDriver

```
$ browserify -t min-wd my-test.js | mocaccino -b -r list | min-wd
$ browserify -t min-wd -p mocaccino my-test.js | min-wd
```

@@ -109,6 +109,8 @@

## IE trouble shooting
## Known issues and solutions
If IE 9 reports it can't find `JSON`, then the Selenium default page makes IE
switch to quirks mode. Work around this by loading a simple web page for IE:
`min-webdriver` injects your script directly into the default page launched by
the Selenium driver. In some cases browsers behave strangely in this context.
Work around this by specifying a URL to a simple web page that is loaded before
running the tests:

@@ -131,2 +133,12 @@ ```

You can also specify a `"url"` for all browser on the root level.
Loading a page before injecting the scripts is solving these issues:
- IE 9 reporting it can't find `JSON` because the Selenium default page makes
IE switch to quirks mode
- Error: `SECURITY_ERR: DOM Exception 18` because setting cookies is not
allowed for `file://` URLs
- Error: `access to the Indexed Database API is denied in this context`
## License

@@ -133,0 +145,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc