Hello.
Every time that i try to run my first Mobile test an error happens:
[0-0] 2021-04-22T11:05:11.080Z 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-04-22T11:05:11.080Z 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 (/home/tiago/appium_tests/node_modules/webdriver/build/utils.js:189:12)
at WebDriverRequest._request (/home/tiago/appium_tests/node_modules/webdriver/build/request.js:168:31)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.startWebDriverSession (/home/tiago/appium_tests/node_modules/webdriver/build/utils.js:63:20)
at async Function.newSession (/home/tiago/appium_tests/node_modules/webdriver/build/index.js:58:45)
at async Object.remote (/home/tiago/appium_tests/node_modules/webdriverio/build/index.js:67:22)
at async Runner._startSession (/home/tiago/appium_tests/node_modules/@wdio/runner/build/index.js:216:56)
at async Runner._initSession (/home/tiago/appium_tests/node_modules/@wdio/runner/build/index.js:172:25)
at async Runner.run (/home/tiago/appium_tests/node_modules/@wdio/runner/build/index.js:87:19)
[0-0] 2021-04-22T11:05:11.081Z 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 (/home/tiago/appium_tests/node_modules/webdriver/build/utils.js:68:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Function.newSession (/home/tiago/appium_tests/node_modules/webdriver/build/index.js:58:45)
at async Object.remote (/home/tiago/appium_tests/node_modules/webdriverio/build/index.js:67:22)
at async Runner._startSession (/home/tiago/appium_tests/node_modules/@wdio/runner/build/index.js:216:56)
at async Runner._initSession (/home/tiago/appium_tests/node_modules/@wdio/runner/build/index.js:172:25)
at async Runner.run (/home/tiago/appium_tests/node_modules/@wdio/runner/build/index.js:87:19)
[0-0] FAILED in Android - /test/specs/sample.test.js
My wdio config is that:
exports.config = {
runner: âlocalâ,
port: 4723,
specs: [
â./test/specs/**/*.jsâ
],
maxInstances: 10,
capabilities: [{
platformName: âAndroidâ,
âappium:deviceNameâ: âpixel 3â,
âappium:appâ:â/home/StudioProjects/digital-therapist/MobileSword/build/outputs/apk/standard/debug/sword_000000001.apkâ
}],
logLevel: âinfoâ,
bail: 0,
baseUrl: âhttp://localhostâ,
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
services: ['selenium-standalone'],
framework: âmochaâ,
reporters: [âspecâ],
mochaOpts: {
ui: âbddâ,
timeout: 60000
},