Получение тайм-аута селена и ошибки webdriverio неверного протокола localhost на macbook - PullRequest
0 голосов
/ 19 февраля 2019

Я установил все необходимые зависимости на MacBook.Так как я получаю сообщение об ошибке ниже, и окно браузера не запускается.Я настроил файл wdio conf также правильно.Не уверен, что мне не хватает?

A service failed in the 'onPrepare' hook
Error: Unable to connect to selenium
    at Timeout.hasStarted [as _onTimeout] (/Users/username/Documents/Projects/projectname/node_modules/selenium-standalone/lib/check-started.js:17:10)
    at listOnTimeout (timers.js:324:15)
    at processTimers (timers.js:268:5)

Continue...
[wdio-webcomponents] Overriding native wdio element/elements commands!
ERROR: Invalid protocol: localhost:
chrome
    at new RuntimeError (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:143:12)
    at Request._callback (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:330:43)
    at self.callback (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:185:22)
    at Request.emit (events.js:188:13)
    at Request.EventEmitter.emit (domain.js:441:20)
    at Request.init (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:458:17)
    at new Request (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:127:8)
    at request (/Users/username/Documents/Projects/projectname/node_modules/request/index.js:53:10)
    at /Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:271:39
    at new Promise (<anonymous>)
    at new F (/Users/username/Documents/Projects/projectname/node_modules/core-js/library/modules/_export.js:36:28)
    at RequestHandler.request (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:270:20)
    at Request._callback (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:341:28)
    at self.callback (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:185:22)
    at Request.emit (events.js:188:13)
    at Request.EventEmitter.emit (domain.js:441:20)

[wdio-webcomponents] Overriding native wdio element/elements commands!
ERROR: Invalid protocol: localhost:
chrome
    at new RuntimeError (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:143:12)
    at Request._callback (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:330:43)
    at self.callback (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:185:22)
    at Request.emit (events.js:188:13)
    at Request.EventEmitter.emit (domain.js:441:20)
    at Request.init (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:458:17)
    at new Request (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:127:8)
    at request (/Users/username/Documents/Projects/projectname/node_modules/request/index.js:53:10)
    at /Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:271:39
    at new Promise (<anonymous>)
    at new F (/Users/username/Documents/Projects/projectname/node_modules/core-js/library/modules/_export.js:36:28)
    at RequestHandler.request (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:270:20)
    at Request._callback (/Users/username/Documents/Projects/projectname/node_modules/webdriverio/build/lib/utils/RequestHandler.js:341:28)
    at self.callback (/Users/username/Documents/Projects/projectname/node_modules/request/request.js:185:22)
    at Request.emit (events.js:188:13)
    at Request.EventEmitter.emit (domain.js:441:20)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...