Title: browserstack-local does not work with webdriverio v5 but works with webdriverio v4 · Issue #85 · browserstack/browserstack-local-nodejs · GitHub
Open Graph Title: browserstack-local does not work with webdriverio v5 but works with webdriverio v4 · Issue #85 · browserstack/browserstack-local-nodejs
X Title: browserstack-local does not work with webdriverio v5 but works with webdriverio v4 · Issue #85 · browserstack/browserstack-local-nodejs
Description: browserstack-local does not work with webdriverio V5 but works with V4 in mutiremote(https://webdriver.io/docs/multiremote.html) capability wdio.conf.js var browserstack = require('browserstack-local'); exports.config = { user:'', key: '...
Open Graph Description: browserstack-local does not work with webdriverio V5 but works with V4 in mutiremote(https://webdriver.io/docs/multiremote.html) capability wdio.conf.js var browserstack = require('browserstack-loc...
X Description: browserstack-local does not work with webdriverio V5 but works with V4 in mutiremote(https://webdriver.io/docs/multiremote.html) capability wdio.conf.js var browserstack = require('browserstack...
Opengraph URL: https://github.com/browserstack/browserstack-local-nodejs/issues/85
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"browserstack-local does not work with webdriverio v5 but works with webdriverio v4","articleBody":"browserstack-local does not work with webdriverio V5 but works with V4 in mutiremote(https://webdriver.io/docs/multiremote.html) capability\r\n\r\nwdio.conf.js\r\nvar browserstack = require('browserstack-local');\r\nexports.config = {\r\n user:'',\r\n key: '',\r\n \r\n specs: [\r\n './test/specs/**/*.js'\r\n ],\r\n browserstackLocal: true,\r\n\r\n onPrepare: function (config, capabilities) {\r\n console.log(\"Connecting local\");\r\n return new Promise(function (resolve, reject) {\r\n exports.bs_local = new browserstack.Local();\r\n exports.bs_local.start({ \r\n 'key': exports.config.key\r\n }, function (error) {\r\n if (error) return reject(error);\r\n console.log('Connected. Now testing...');\r\n resolve();\r\n }); \r\n });\r\n },\r\n onComplete: function (exitCode, config, capabilities,results) {\r\n exports.bs_local.stop({function () { console.log(\"bslocal stopped\") }});\r\n },\r\n capabilities: {\r\n myChromeBrowser: {\r\n capabilities: {\r\n browserName: 'chrome'\r\n }\r\n },\r\n myFirefoxBrowser: {\r\n capabilities: {\r\n browserName: 'firefox'\r\n }\r\n }\r\n },\r\n logLevel: 'info',\r\n bail: 0,\r\n baseUrl: '',\r\n waitforTimeout: 10000,\r\n connectionRetryTimeout: 90000,\r\n connectionRetryCount: 3,\r\n services: ['browserstack'],\r\n framework: 'mocha',\r\n reporters: ['spec'],\r\n mochaOpts: {\r\n ui: 'bdd',\r\n timeout: 60000\r\n }\r\n}\r\n\r\n\r\nBasic.js\r\n\r\nconst assert = require('assert')\r\n\r\ndescribe('webdriver.io page', () => {\r\n it('should have the right title', () => {\r\n myChromeBrowser.url('https://webdriver.io')\r\n myFirefoxBrowser.url('https://google.com')\r\n const title = browser.getTitle()\r\n assert.strictEqual(title, 'WebdriverIO · Next-gen WebDriver test framework for Node.js')\r\n })\r\n})\r\n\r\n\r\n\r\npackage.json\r\n\r\n{\r\n \"name\": \"browserstack\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"\",\r\n \"main\": \"index.js\",\r\n \"scripts\": {\r\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n },\r\n \"author\": \"\",\r\n \"license\": \"ISC\",\r\n \"devDependencies\": {\r\n \"@wdio/browserstack-service\": \"^5.12.5\",\r\n \"@wdio/cli\": \"^5.13.1\",\r\n \"@wdio/local-runner\": \"^5.13.1\",\r\n \"@wdio/mocha-framework\": \"^5.12.1\",\r\n \"@wdio/spec-reporter\": \"^5.12.1\",\r\n \"@wdio/sync\": \"^5.13.0\",\r\n \"browserstack-local\": \"^1.4.2\",\r\n \"chromedriver\": \"^77.0.0\",\r\n \"wdio-chromedriver-service\": \"^5.0.2\"\r\n }\r\n}\r\n\r\n\r\nGives Error - ERROR: Required option \"capabilities\" is missing.\r\n\r\n0-0 worker error { name: 'Error',\r\nmessage: 'Required option \"capabilities\" is missing',\r\nstack:\r\n'Error: Required option \"capabilities\" is missing\\n at validateConfig (node_modules/@wdio/config/build/utils.js:80:13)\\n at Promise.all.browserNames.map.browserName (node_modules/webdriverio/build/index.js:68:47)\\n at Array.map ()\\n at multiremote (node_modules/webdriverio/build/index.js:67:34)\\n at initialiseInstance (node_modules/@wdio/runner/build/utils.js:77:54)\\n at Runner._initSession (node_modules/@wdio/runner/build/index.js:150:87)\\n at Runner.run (node_modules/@wdio/runner/build/index.js:67:32)\\n at processTicksAndRejections (internal/process/next_tick.js:81:5)' }\r\n\r\n\r\n","author":{"url":"https://github.com/suchitrak","@type":"Person","name":"suchitrak"},"datePublished":"2019-09-23T17:36:15Z","url":"https://github.com/browserstack/browserstack-local-nodejs/issues/85"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a6e95bc6-0c9c-b3b1-3005-068a3ac4b3a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B67A:1B4D88:6DA42:97EBE:6B04304B |
| html-safe-nonce | da149f3d9b1a4a828a5af3166bfbe908a920ffee9300b0f1a9a615e6953ec609 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjdBOjFCNEQ4ODo2REE0Mjo5N0VCRTo2QjA0MzA0QiIsInZpc2l0b3JfaWQiOiIyNDUyNzAyMzU2NzY5NjE1OTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ff0466207a009e48ff224577d201748266d64644f3b94e204b2df4d43cd5b1f6 |
| hovercard-subject-tag | issue:497232963 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/browserstack-local-nodejs/85/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f9f31d040e1e29fcf77c2ef9e4739f1ff339e8d334d627963d0a9c3c9882463b/browserstack/browserstack-local-nodejs/issues/85 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f9f31d040e1e29fcf77c2ef9e4739f1ff339e8d334d627963d0a9c3c9882463b/browserstack/browserstack-local-nodejs/issues/85 |
| og:image:alt | browserstack-local does not work with webdriverio V5 but works with V4 in mutiremote(https://webdriver.io/docs/multiremote.html) capability wdio.conf.js var browserstack = require('browserstack-loc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | suchitrak |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/browserstack/browserstack-local-nodejs git https://github.com/browserstack/browserstack-local-nodejs.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 51923223 |
| octolytics-dimension-repository_nwo | browserstack/browserstack-local-nodejs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51923223 |
| octolytics-dimension-repository_network_root_nwo | browserstack/browserstack-local-nodejs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width