Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Codeceptjs with Appium , Ios only #4804

Closed
gabrielaObogeanu95 started this conversation in General
Discussion options

I need some help with the configuration for Codeceptjs with Appium for Ios testing. I want to use emulators and my issue is that my app is not launching when I run the tests plus I get the (Error: Can't connect to WebDriver.
Error: Failed to create session.) : at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:531:35)
at ClientRequest.emit (node:domain:488:12)
at Socket.socketOnEnd (node:_http_client:524:9)
at Socket.emit (node:events:531:35)
at Socket.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1696:12)
at Socket.socketOnEnd (node:_http_client:524:23)
at Socket.emit (node:events:531:35)
at Socket.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1696:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
Error: Can't connect to WebDriver.
Error: Failed to create session.
socket hang up

Please make sure Selenium Server is running and accessible
Before I start the tests I run the appium server in the terminal , open the simulator that I want to use and then triggering the tests .
This is my configuration file:
output: './output',
helpers: {
Appium: {
appiumV2: true,
platform: "iOS",
path: '/wd/hub',
capabilities: {
bundleId: "",
deviceName: "iPad (10th generation)",
platformVersion: "18.2",
automationName: 'XCUITest'
},
},
},
Do you have an example on how you do it in your project ?

You must be logged in to vote

Replies: 1 comment

Comment options

now it is working by using this config
helpers: {
Appium: {
appiumV2: true,
platform: "iOS",
desiredCapabilities: {
bundleId: '',
deviceName: "iPad (10th generation)",
automationName: "xcuitest",
},
host: "127.0.0.1",
port: 4723,
path: "/",
}
},

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /