Comparing version 0.35.1 to 0.35.2
@@ -163,3 +163,3 @@ var ChromeDriver = require('./chrome-driver') | ||
return this.execute(function (bounds) { | ||
require('remote').getCurrentWindow().setBounds(bounds) | ||
require('electron').remote.getCurrentWindow().setBounds(bounds) | ||
}, bounds) | ||
@@ -181,3 +181,3 @@ }) | ||
return this.execute(function () { | ||
require('remote').require('app').quit() | ||
require('electron').remote.app.quit() | ||
}) | ||
@@ -217,3 +217,3 @@ }) | ||
return this.execute(function () { | ||
return require('remote').getGlobal('process').argv | ||
return require('electron').remote.getGlobal('process').argv | ||
}).then(getResponseValue) | ||
@@ -224,3 +224,3 @@ }) | ||
return this.execute(function () { | ||
return require('clipboard').readText() | ||
return require('electron').clipboard.readText() | ||
}).then(getResponseValue) | ||
@@ -231,3 +231,3 @@ }) | ||
return this.execute(function (text) { | ||
return require('clipboard').writeText(text) | ||
return require('electron').clipboard.writeText(text) | ||
}, text).then(getResponseValue) | ||
@@ -238,3 +238,3 @@ }) | ||
return this.execute(function (edited) { | ||
return require('remote').getCurrentWindow().setDocumentEdited(edited) | ||
return require('electron').remote.getCurrentWindow().setDocumentEdited(edited) | ||
}, edited).then(getResponseValue) | ||
@@ -245,3 +245,3 @@ }) | ||
return this.execute(function (filename) { | ||
return require('remote').getCurrentWindow().setRepresentedFilename(filename) | ||
return require('electron').remote.getCurrentWindow().setRepresentedFilename(filename) | ||
}, filename).then(getResponseValue) | ||
@@ -261,2 +261,8 @@ }) | ||
this.client.addCommand('isWindowLoading', function () { | ||
return this.execute(function () { | ||
return require('electron').remote.getCurrentWindow().webContents.isLoading() | ||
}).then(getResponseValue) | ||
}) | ||
this.addCurrentWindowGetter('getBounds', 'getWindowBounds') | ||
@@ -268,3 +274,2 @@ this.addCurrentWindowGetter('isDevToolsOpened', 'isWindowDevToolsOpened') | ||
this.addCurrentWindowGetter('isMinimized', 'isWindowMinimized') | ||
this.addCurrentWindowGetter('isLoading', 'isWindowLoading') | ||
this.addCurrentWindowGetter('isVisible', 'isWindowVisible') | ||
@@ -288,3 +293,3 @@ | ||
var currentWindowGetter = function (methodName) { | ||
return require('remote').getCurrentWindow()[methodName]() | ||
return require('electron').remote.getCurrentWindow()[methodName]() | ||
} | ||
@@ -291,0 +296,0 @@ |
{ | ||
"name": "spectron", | ||
"version": "0.35.1", | ||
"version": "0.35.2", | ||
"description": "Easy ChromeDriver tests for Electron apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1769422
359