Comparing version 6.0.0 to 7.0.0
@@ -156,16 +156,2 @@ var Accessibility = require('./accessibility') | ||
// Since ChromeDriver v2.41, ChromeDriver will only connect | ||
// if, either we precise a port for remote debugging, either | ||
// the embedder (ie electron) made sure to pass `USER_DATA_DIR` | ||
// to the remote debugging server. | ||
// https://bitbucket.org/chromiumembedded/cef/issues/2476/cef-webdriver-instructions-will-need-to | ||
// `USER_DATA_DIR` is properly passed to the remote debugging server | ||
// since electron 5 (see electron/electron#17800) | ||
// So, for now, we'll just use a random port if not already set. | ||
// todo(electron-5): remove me | ||
if (!args.some(arg => arg.startsWith('remote-debugging-port'))) { | ||
const randomPort = Math.floor(Math.random() * (9999 - 9000) + 9000) | ||
args.push(`remote-debugging-port=${randomPort}`) | ||
} | ||
var isWin = process.platform === 'win32' | ||
@@ -172,0 +158,0 @@ var launcherPath = path.join(__dirname, isWin ? 'launcher.bat' : 'launcher.js') |
{ | ||
"name": "spectron", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Easily test your Electron apps using ChromeDriver and WebdriverIO.", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"dev-null": "^0.1.1", | ||
"electron-chromedriver": "~4.0.0", | ||
"electron-chromedriver": "^5.0.1", | ||
"request": "^2.87.0", | ||
@@ -40,3 +40,3 @@ "split": "^1.0.0", | ||
"check-for-leaks": "^1.0.2", | ||
"electron": "^4.2.2", | ||
"electron": "^5.0.1", | ||
"husky": "^0.14.3", | ||
@@ -43,0 +43,0 @@ "mocha": "^5.2.0", |
@@ -35,2 +35,3 @@ # <img src="https://cloud.githubusercontent.com/assets/378023/15063284/cf544f2c-1383-11e6-9336-e13bd64b1694.png" width="60px" align="center" alt="Spectron icon"> Spectron | ||
| `^4.0.0` | `^6.0.0` | | ||
| `^5.0.0` | `^7.0.0` | | ||
@@ -187,4 +188,4 @@ Learn more from [this presentation](https://speakerdeck.com/kevinsawicki/testing-your-electron-apps-with-chromedriver). | ||
The Electron helpers provided by Spectron require accessing the core Electron | ||
APIs in the renderer processes of your application. So if your Electron | ||
application has `nodeIntegration` set to `false` then you'll need to expose a | ||
APIs in the renderer processes of your application. So, either your Electron | ||
application has `nodeIntegration` set to `true` or you'll need to expose a | ||
`require` window global to Spectron so it can access the core Electron APIs. | ||
@@ -191,0 +192,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
684
178654
3449
+ Addedelectron-chromedriver@5.0.1(transitive)
- Removedelectron-chromedriver@4.0.0(transitive)
Updatedelectron-chromedriver@^5.0.1