-
-
Notifications
You must be signed in to change notification settings - Fork 751
-
conf.codecept.js
helpers: {
Appium: {
appiumv2: true,
app: 'path/to/ipa',
platformName: 'iOS',
deviceName: 'iPhone 14',
udid: 'EFD167BF-800F-4CE7-B88F-808AE1B56D98',
automationName: 'XCUITest',
hostname: '0.0.0.0',
port: 4723,
path: "/wd/hub"
}
test output:
2023年12月05日T04:48:10.502Z 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
2023年12月05日T04:48:10.503Z 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
Error: Can't connect to WebDriver.
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
Please make sure Selenium Server is running and accessible
Running in circles here for something so basic. Any help would be appreciated, thanks.
Beta Was this translation helpful? Give feedback.
All reactions
Resolved this by finally narrowing down my issue. Below is a working appium helper config:
Before
Appium: {
appiumv2: true,
"appium:deviceName": "iPhone 14",
"appium:automationName": "xcuitest",
"appium:bundleId": "appBundleIdHere",
"appium:platformName": "iOS",
hostname: '127.0.0.1',
port: 4723,
path: "/"
},
},
Working helper config:
Appium: {
"platform": "iOS",
"desiredCapabilities": {
"appium:udid": "EFD167BF-800F-4CE7-B88F-808AE1B56D98",
"appium:bundleId": "com.thisisaura.auraPlatform",
"appium:automationName": "xcuitest",
},
host: "127.0.0.1",
port: 4723,
path: "/",
...Replies: 2 comments
-
So some progress has been made.
using appium desktop inspector I can succesfully launch a session with an app using the following:
{
"appium:deviceName": "iPhone 14",
"appium:automationName": "xcuitest",
"appium:bundleId": "appBundleIdHere",
"appium:platformName": "iOS"
}
However, I cannot replicate this successfully in codeceptjs. Here is my latest config:
helpers: {
Appium: {
appiumv2: true,
"appium:deviceName": "iPhone 14",
"appium:automationName": "xcuitest",
"appium:bundleId": "appBundleIdHere",
"appium:platformName": "iOS",
hostname: '127.0.0.1',
port: 4723,
path: "/"
},
},
error:
Could not load helper Appium from module './helper/Appium':
Appium requires either platform and app or a browser to be set.
Check your codeceptjs config file to ensure these are set properly
{
"helpers": {
"Appium": {
"app": "/path/to/app/package"
"platform": "MOBILE_OS",
}
}
}
Error:
Appium requires either platform and app or a browser to be set.
Check your codeceptjs config file to ensure these are set properly
{
"helpers": {
"Appium": {
"app": "/path/to/app/package"
"platform": "MOBILE_OS",
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions
-
Resolved this by finally narrowing down my issue. Below is a working appium helper config:
Before
Appium: {
appiumv2: true,
"appium:deviceName": "iPhone 14",
"appium:automationName": "xcuitest",
"appium:bundleId": "appBundleIdHere",
"appium:platformName": "iOS",
hostname: '127.0.0.1',
port: 4723,
path: "/"
},
},
Working helper config:
Appium: {
"platform": "iOS",
"desiredCapabilities": {
"appium:udid": "EFD167BF-800F-4CE7-B88F-808AE1B56D98",
"appium:bundleId": "com.thisisaura.auraPlatform",
"appium:automationName": "xcuitest",
},
host: "127.0.0.1",
port: 4723,
path: "/",
}
Beta Was this translation helpful? Give feedback.