Webdriver.io Webpack Electron integration throws Failed to compile -
i want have nice electron vue.js interface running , presenting webdriver.io tests.
my app setup using https://github.com/simulatedgreg/electron-vue
i have homepage-test.js
'use strict'; const webdriverio = require('webdriverio'); const options = { host: 'localhost', // use localhost chrome driver server port: 9515, // "9515" port opened chrome driver. desiredcapabilities: { browsername: 'chrome', chromeoptions: { binary: '/users/myuser/atom/my-tester/node_modules/electron/dist/electron.app', // path electron binary. args: [/* cli arguments */] // optional, perhaps 'app=' + /path/to/your/app/ } } }; const client = webdriverio.remote(options); exports.homepage = () => { client.init(); }
i running ./node_modules/.bin/chromedriver --url-base=wd/hub --port=9515
and connecting homepage-test.js in tester.vue import homepage '../../../../lib/homepage-test';
the problem receive error:
failed compile. ./~/webdriverio/build/lib/helpers/getimplementedcommands.js 59:44-90 critical dependency: request of dependency expression
with these in chrome console:
./~/webdriverio/build/lib/helpers/getimplementedcommands.js 59:44-90 critical dependency: request of dependency expression ./~/webdriverio/build/lib/utils/configparser.js 138:58-75 critical dependency: request of dependency expression ./~/ajv/lib/async.js 96:20-33 critical dependency: request of dependency expression ./~/ajv/lib/async.js 119:15-28 critical dependency: request of dependency expression ./~/ajv/lib/compile/index.js 13:21-34 critical dependency: request of dependency expression
i assuming problem between integration of webpack, electron , webdriver.io.
i tried use documentation without success: https://github.com/electron/electron/blob/master/docs/tutorial/using-selenium-and-webdriver.md
Comments
Post a Comment