Open Jayasankar-m opened 5 years ago
+1
With this config
capabilities: { 'browserName': 'chrome', chromeOptions: { binary: './node_modules/.bin/electron', args: ['app=./main.js'] } }
Following error is obtained on executing the tests.
[10:59:03] E/launcher - unknown error: Failed to create a Chrome process. (Driver info: chromedriver=77.0.3865.10 (bc3579f611bbc73331171afe020ec7a45e6ccc55-refs/branch-heads/3865@{#93}),platform=Windows NT 10.0.18362 x86_64) [10:59:03] E/launcher - WebDriverError: unknown error: Failed to create a Chrome process. (Driver info: chromedriver=77.0.3865.10 (bc3579f611bbc73331171afe020ec7a45e6ccc55-refs/branch-heads/3865@{#93}),platform=Windows NT 10.0.18362 x86_64) at Object.checkLegacyResponse (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:546:15) at parseHttpResponse (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:509:13) at doSend.then.response (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:441:30) at process._tickCallback (internal/process/next_tick.js:68:7) From: Task: WebDriver.createSession() at Function.createSession (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:769:24) at Function.createSession (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\chrome.js:761:15) at Direct.getNewDriver (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\built\driverProviders\direct.js:77:33) at Runner.createBrowser (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\built\runner.js:195:43) at q.then.then (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\built\runner.js:339:29) at _fulfilled (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:834:54) at C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:863:30 at Promise.promise.promiseDispatch (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:796:13) at C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:556:49 at runSingle (C:\Users\coder\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:137:13) [10:59:03] E/launcher - Process exited with error code 199
Try defining the remote-debugging-port
to 9515 as a chrome option.
An existing angularjs was converted as electron application by following the steps in the site. The application is working fine and it is possible to navigate through the pages. But not able to execute automation tests with 'protractor'.
** 1.Had downloaded 'electron-chromedriver' and launched the server.'electron-chromedriver' is listening on port 9515.
2.The conf.js file for protractor is given below **
Following error is obtained on executing the tests.
Thanks in Advance!!