question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Standalone server and point to a wrong path. Please set `path: '/wd/hub'` in your wdio.conf.js

See original GitHub issue

Environment (please complete the following information):

  • WebdriverIO version: 6.1.20
  • Mode: [Standalone mode or WDIO Testrunner]
  • If WDIO Testrunner, running sync/async: sync
  • Node.js version: 12.16.1
  • NPM version: 6.13.4
  • Browser name and version: 83
  • Platform name and version: ubuntu 20.04LTS
  • Additional wdio packages used (if applicable):
    "@wdio/allure-reporter": "^6.1.14", "@wdio/appium-service": "^6.1.16", "@wdio/dot-reporter": "^6.1.14", "@wdio/local-runner": "^6.1.20", "@wdio/mocha-framework": "^6.1.19", "@wdio/selenium-standalone-service": "^6.1.14", "@wdio/spec-reporter": "^6.1.14", "@wdio/sync": "^6.1.14", "chai": "^4.2.0", "chromedriver": "^83.0.0", "wdio-chromedriver-service": "^6.0.3"

Config of WebdriverIO you can find it in the url provided below

Describe the bug Unable to trigger certain capabilities when using multi-remote feature as it seems ports are overlapping each other and throws an error as shown in the screenshot attached below

To Reproduce

  • Pull the code in the repo
  • git checkout to master (example branch is the default)
  • run ‘npm i’
  • run ‘npm run test’

https://github.com/Amrkamel1/wdExample/tree/master

Expected behavior I should be able to run certain capabilities separately

Log image

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:39 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
amrsa1commented, Sep 2, 2020

@christian-bromann

Good news!! 😄 its working now with config below.

`  capabilities: {
myChromeBrowser: {
  port: 4444,
  path: '/wd/hub',
  capabilities: {
      browserName: 'chrome',
      acceptInsecureCerts: true
  }
},
androidClient: {
  port: 4728,
  path: '/',
  capabilities: {
    platformName: 'Android',
    browserName: 'chrome',
    'appium:deviceName': 'pixel2',
    'appium:avd': 'pixel2',
    'appium:platformVersion': '10',
    'appium:avdLaunchTimeout': 120000,
    'appium:avdReadyTimeout': 120000,
    'appium:uiautomator2ServerInstallTimeout' :120000,
    'appium:appWaitForLaunch': true,
    'appium:ensureWebviewsHavePages': true,
    'appium:disableWindowAnimation': true,
    'appium:autoGrantPermissions': true,
    'appium:clearSystemFiles': true,
    'appium:nativeWebScreenshot': true,
  }
  }
       },
        services: [
      ['selenium-standalone', {
         args: {
           seleniumArgs: ['-port', '4444']
         },
     }],  
     ['appium',{
       command : 'appium',
       args: {
           debugLogSpacing: true,
           sessionOverride: true,
           port: 4728,
       },
     }]
   ],`

note: I have upgraded all the json package to latest

2020-09-02_10h19_18

1reaction
christian-bromanncommented, Sep 2, 2020

Yeah, this is a different story. Glad it works now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

webdriverio/webdriverio - Gitter
It seems you are running a Selenium Standalone server and point to a wrong path. Please set 'path: '/wd/hub'' in your wd io.conf.js!...
Read more >
Webdriver newbie question - Software Testing Club
It seems you are running a Selenium Standalone server and point to a wrong path. Please set 'path: '/wd/hub'' in your wd io.conf.js!...
Read more >
Common Selenium and Webdriverio Error Messages SOLVED
This error is thrown when WebdriverIO tries to send an HTTP request to the default Selenium server location. The request to that location ......
Read more >
WebdriverIO not using config.path to access Appium Server
i just stepped over the same issue and it looks like it works when you set it under the capabilites: capabilities: [{ "path":...
Read more >
Configuration File
The configuration file contains all necessary information to run your test suite. It's a NodeJS module that exports a JSON.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found