diff --git a/test/specs/security_test.js b/test/specs/security_test.js index 821880f0..1766e083 100644 --- a/test/specs/security_test.js +++ b/test/specs/security_test.js @@ -66,9 +66,9 @@ describe('application', function() { env.addClientCommands(this.app.client); const client = this.app.client; return this.app.client + .windowByIndex(1) // in the first webview .execute(function() { - const webview = document.querySelector('webview'); - webview.executeJavaScript('open_window();'); + open_window(); }) .waitUntil(function async() { return client.windowHandles().then((handles) => {