title: WebdriverIO not using config.path to access Appium Server
body: <p>I'm trying to get started with appium and successfully connected myself with my device using Appium Server and Appium Inspector (I had to change remote path to /wd/hub). Now, I'm trying to do the same using WebdriverIO using <a href="https://github.com/webdriverio/appium-boilerplate" rel="nofollow noreferrer">https://github.com/webdriverio/appium-boilerplate</a></p>
  <p>At first I start the appium server:</p>
  <p><a href="https://i.stack.imgur.com/Y6oih.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y6oih.png" alt="enter image description here" /></a></p>
  <p>Now I cloned Appium Boilerplate from <a href="https://github.com/webdriverio/appium-boilerplate" rel="nofollow noreferrer">https://github.com/webdriverio/appium-boilerplate</a> and ran <code>npm install</code>. Then I changed the path in <code>config/wdio.android.app.conf.ts</code> to '/wd/hub':</p>
  <pre class="lang-js prettyprint-override"><code>import { join } from 'path';
  import config from './wdio.shared.local.appium.conf';
  
  // ============
  // Specs
  // ============
  config.specs = [
      './tests/specs/**/app*.spec.ts',
  ];
  
  // ============
  // Capabilities
  // ============
  // For all capabilities please check
  // http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
  config.capabilities = [
      {
          // The defaults you need to have in your config
          platformName: 'Android',
          maxInstances: 1,
          // For W3C the appium capabilities need to have an extension prefix
          // http://appium.io/docs/en/writing-running-appium/caps/
          // This is `appium:` for all Appium Capabilities which can be found here
          'appium:deviceName': 'Pixel_3_10.0',
          'appium:platformVersion': '10.0',
          'appium:orientation': 'PORTRAIT',
          'appium:automationName': 'UiAutomator2',
          // The path to the app
          'appium:app': join(process.cwd(), './apps/Android-NativeDemoApp-0.4.0.apk'),
          // @ts-ignore
          'appium:appWaitActivity': 'com.wdiodemoapp.MainActivity',
          // Read the reset strategies very well, they differ per platform, see
          // http://appium.io/docs/en/writing-running-appium/other/reset-strategies/
          'appium:noReset': true,
          'appium:newCommandTimeout': 240,
      },
  ];
  
  config.path = '/wd/hub';
  console.log(config);
  exports.config = config;
  </code></pre>
  <p>Now I call <code>npm run android.app</code>, and the console.log command shows me:</p>
  <pre><code>{
    runner: 'local',
    specs: [ './tests/specs/**/app*.spec.ts' ],
    capabilities: [
      {
        platformName: 'Android',
        maxInstances: 1,
        'appium:deviceName': 'Pixel_3_10.0',
        'appium:platformVersion': '10.0',
        'appium:orientation': 'PORTRAIT',
        'appium:automationName': 'UiAutomator2',
        'appium:app': '&lt;&lt;removed initially ;-)&gt;&gt;',
        'appium:appWaitActivity': 'com.wdiodemoapp.MainActivity',
        'appium:noReset': true,
        'appium:newCommandTimeout': 240
      }
    ],
    logLevel: 'silent',
    bail: 0,
    baseUrl: 'http://the-internet.herokuapp.com',
    waitforTimeout: 45000,
    connectionRetryTimeout: 120000,
    connectionRetryCount: 3,
    services: [ [ 'appium', [Object] ] ],
    framework: 'mocha',
    reporters: [ 'spec' ],
    mochaOpts: { ui: 'bdd', timeout: 180000 },
    port: 4723,
    path: '/wd/hub'
  }
  </code></pre>
  <p>... which seems ok for me, but the Appium server shows:</p>
  <pre><code>[HTTP] Waiting until the server is closed
  [HTTP] Received server close event
  [Appium] Welcome to Appium v1.22.0
  [Appium] Non-default server args:
  [Appium]   address: 127.0.0.1
  [Appium]   sessionOverride: true
  [Appium]   relaxedSecurityEnabled: true
  [Appium]   allowInsecure: {
  [Appium]   }
  [Appium]   denyInsecure: {
  [Appium]   }
  [Appium] Appium REST http interface listener started on 127.0.0.1:4723
  [HTTP] --&gt; POST /session
  [HTTP] {&quot;capabilities&quot;:{&quot;alwaysMatch&quot;:{&quot;platformName&quot;:&quot;Android&quot;,&quot;appium:deviceName&quot;:&quot;Pixel_3_10.0&quot;,&quot;appium:platformVersion&quot;:&quot;10.0&quot;,&quot;appium:orientation&quot;:&quot;PORTRAIT&quot;,&quot;appium:automationName&quot;:&quot;UiAutomator2&quot;,&quot;appium:app&quot;:&quot;&lt;&lt;removed ;-)&gt;&gt;&quot;,&quot;appium:appWaitActivity&quot;:&quot;com.wdiodemoapp.MainActivity&quot;,&quot;appium:noReset&quot;:true,&quot;appium:newCommandTimeout&quot;:240},&quot;firstMatch&quot;:[{}]},&quot;desiredCapabilities&quot;:{&quot;platformName&quot;:&quot;Android&quot;,&quot;appium:deviceName&quot;:&quot;Pixel_3_10.0&quot;,&quot;appium:platformVersion&quot;:&quot;10.0&quot;,&quot;appium:orientation&quot;:&quot;PORTRAIT&quot;,&quot;appium:automationName&quot;:&quot;UiAutomator2&quot;,&quot;appium:app&quot;:&quot;&lt;&lt;removed ;-)&gt;&gt;&quot;,&quot;appium:appWaitActivity&quot;:&quot;com.wdiodemoapp.MainActivity&quot;,&quot;appium:noReset&quot;:true,&quot;appium:newCommandTimeout&quot;:240}}
  [HTTP] No route found for /session
  [HTTP] &lt;-- POST /session 404 8 ms - 211
  [HTTP] 
  [HTTP] --&gt; POST /session
  [HTTP] {&quot;capabilities&quot;:{&quot;alwaysMatch&quot;:{&quot;platformName&quot;:&quot;Android&quot;,&quot;appium:deviceName&quot;:&quot;Pixel_3_10.0&quot;,&quot;appium:platformVersion&quot;:&quot;10.0&quot;,&quot;appium:orientation&quot;:&quot;PORTRAIT&quot;,&quot;appium:automationName&quot;:&quot;UiAutomator2&quot;,&quot;appium:app&quot;:&quot;&lt;&lt;removed ;-)&gt;&gt;&quot;,&quot;appium:appWaitActivity&quot;:&quot;com.wdiodemoapp.MainActivity&quot;,&quot;appium:noReset&quot;:true,&quot;appium:newCommandTimeout&quot;:240},&quot;firstMatch&quot;:[{}]},&quot;desiredCapabilities&quot;:{&quot;platformName&quot;:&quot;Android&quot;,&quot;appium:deviceName&quot;:&quot;Pixel_3_10.0&quot;,&quot;appium:platformVersion&quot;:&quot;10.0&quot;,&quot;appium:orientation&quot;:&quot;PORTRAIT&quot;,&quot;appium:automationName&quot;:&quot;UiAutomator2&quot;,&quot;appium:app&quot;:&quot;&lt;&lt;removed ;-)&gt;&gt;&quot;,&quot;appium:appWaitActivity&quot;:&quot;com.wdiodemoapp.MainActivity&quot;,&quot;appium:noReset&quot;:true,&quot;appium:newCommandTimeout&quot;:240}}
  </code></pre>
  <p>It looks like WebdriverIO doesn't recognize the config.path-setting. I was already checking out <a href="https://stackoverflow.com/questions/67458824/testing-mobile-app-with-appium-webdriverio-no-route-found-for-session">Testing Mobile App with Appium &amp; WebdriverIO: &quot;No route found for /session&quot;</a> but the solution was changing the config.path value (which I did) but I've no idea why it's no recognized... Is anyone having any idea?</p>