title: react native appium with webdriver crash
body: <p>I follow this <a href="https://itnext.io/test-automation-in-react-native-ac9ac2330ab9" rel="nofollow noreferrer">tutorial</a> to set up testing in my app with appium and webdriver.</p>
  <p>my wdio.config is</p>
  <pre><code>    exports.config = {
    services: ['appium'],
    port: 4723,
    runner: 'local',
    specs: ['./tests/*.js'],
    capabilities: [
      {
        maxInstances: 1,
        browserName: '',
        appiumVersion: '1.20.2',
        platformName: 'Android',
        platformVersion: '11',
        deviceName: '99211FFAZ00843',
        app: './apps/app-dev-debug.apk',
        automationName: 'UiAutomator2',
      },
    ],
  
    logLevel: 'trace',
    bail: 0,
    waitforTimeout: 10000,
    connectionRetryTimeout: 90000,
    connectionRetryCount: 3,
    framework: 'mocha',
    reporters: ['spec'],
    mochaOpts: {
      ui: 'bdd',
      timeout: 60000,
    },
  };
  </code></pre>
  <p>package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;automationTests&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;wdio.conf.js&quot;,
    &quot;directories&quot;: {
      &quot;test&quot;: &quot;tests&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@wdio/cli&quot;: &quot;^7.0.5&quot;,
      &quot;chai&quot;: &quot;^4.3.0&quot;,
      &quot;wdio-appium-service&quot;: &quot;^0.2.3&quot;,
      &quot;webdriverio&quot;: &quot;^7.0.5&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@wdio/local-runner&quot;: &quot;^7.0.5&quot;,
      &quot;@wdio/mocha-framework&quot;: &quot;^7.0.4&quot;,
      &quot;@wdio/spec-reporter&quot;: &quot;^7.0.4&quot;,
      &quot;@wdio/sync&quot;: &quot;^7.0.5&quot;,
      &quot;chromedriver&quot;: &quot;^88.0.0&quot;,
      &quot;wdio-chromedriver-service&quot;: &quot;^6.0.4&quot;
    },
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;mocha&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;
  }
  </code></pre>
  <p>I have tests folder with test file App.test.js</p>
  <pre><code>const TestsIds = require('../../../src/assets/test_ids');
  var expect = require('chai').expect;
  
  describe('Simple App testing', () =&gt; {
    beforeEach(() =&gt; {});
  
    it('Valid Login Test', () =&gt; {
      const skipButton = $(`~$view-app-id`).waitForDisplayed(3000, false);
      skipButton.click();
    });
  });
  </code></pre>
  <p>I got this error</p>
  <pre><code> ERROR webdriver: Request failed with status 404 due to unknown command: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
  [0-0] 2021-02-18T12:34:11.688Z ERROR webdriver: unknown command: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
      at Object.getErrorFromResponseBody (/Users/XXX/Desktop/projects/XXXXX/node_modules/webdriver/build/utils.js:189:12)
      at WebDriverRequest._request (//Users/XXX/Desktop/projects/XXXXX/node_modules/webdriver/build/request.js:168:31)
      at process._tickCallback (internal/process/next_tick.js:68:7)
  [0-0] 2021-02-18T12:34:11.690Z ERROR @wdio/runner: Error: Failed to create session.
  The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
      at Object.startWebDriverSession (//Users/XXX/Desktop/projects/XXXXX/node_modules/webdriver/build/utils.js:68:15)
      at process._tickCallback (internal/process/next_tick.js:68:7)
  2021-02-18T12:34:11.810Z DEBUG @wdio/local-runner: Runner 0-0 finished with exit code 1
  [0-0] FAILED in undefined - /tests/App.test.js
  2021-02-18T12:34:11.811Z INFO @wdio/cli:launcher: Run onComplete hook
  
  Spec Files:      0 passed, 1 failed, 1 total (100% completed) in 00:00:01
  </code></pre>
  <p>in addition I get error in the app.test.js</p>
  <pre><code>skipButton.click() is not function
  </code></pre>