From f5e28e2739a4d6618d98d3a11c909a74219ef005 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Sat, 25 Jun 2016 22:46:07 +0900 Subject: [PATCH] Execute testing js code directly with webdriverio API --- test/specs/security_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {