Chrome/firefox/safari- browser does not auto-start on macOS unless Selenium Standalone is manually launched
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, nodejs
- Domain
- testing
Research direction
Start with the reported codecept.conf.js WebDriver configuration, especially the services: ["chromedriver"] setting and the macOS environment details. Reproduce the configuration on macOS and verify whether the browser starts without manually launching Selenium Standalone; done means the connection error no longer occurs.
Written by the indexing model from the issue text.
Description
Please share the macOS-supported codecept.conf.js file. With the current configuration below, the local automation does not automatically start ChromeDriver on macOS
Error | Error: Can't connect to WebDriver
We need to explicitly start standalone Selenium to launch the browser
node version-v14.15.5
npm version-6.14.5
exports.config = {
tests: "./*_test.js",
output: "./output",
/** -----------------------------
- 🚀 HELPERS
- ----------------------------- /
helpers: {
WebDriver: {
url: prop.url,
browser: browser,
restart: false,
smartWait: 10000,
waitForTimeout: 50000,
windowSize: windowSize,
/* Auto-start ChromeDriver on Mac /
services: ["chromedriver"],
capabilities: {
acceptInsecureCerts: true,
'goog:chromeOptions': {
excludeSwitches: ['enable-automation'],
prefs: {
download: {
default_directory: prop.downloadDir,
prompt_for_download: false
}
}
}
}
},
/* Custom Helpers /
ChaiWrapper: {
require: "codeceptjs-chai",
},
MyHelper: {
require: "./myHelper.js",
},
},
/* ----------------------------- - BOOTSTRAP + TEARDOWN
- ----------------------------- /
bootstrap: require("./dist/Bootstrap/bootstrap.js").bootstrap,
teardown: require("./dist/Bootstrap/bootstrap.js").teardown,
teardownAll: require("./src/get_all_reports.js"),
include: {
I: prop.stepFilePath,
},
/* ----------------------------- - PARALLEL EXECUTION
- ----------------------------- /
multiple: {
parallel: { chunks: 1 },
sanityCases: { chunks: 2 }
},
/* ----------------------------- - BDD (Gherkin)
- ----------------------------- /
gherkin: {
features: [
'./src//features//.feature',
"./src//src///.feature"
],
steps: "./dist//implementation///*.js"
},
name: prop.projectName,
/ ----------------------------- - PLUGINS
- ----------------------------- /
plugins: {
xpathValidate: {
require: "./src/xpathValidation.js",
enabled: true
},
retryFailedStep: { enabled: true },
tryTo: { enabled: true },
screenshotOnFail: {
enabled: true,
uniqueScreenshotNames: true
},
/* ❌ WDIO plugin is removed – not needed */
// wdio: { ... } → deleted
autoDelay: {
enabled: true,
delayBefore: 1000,
delayAfter: 500,
methods: ['click', 'fillField', 'checkOption']
},
allure: {
enabled: true,
require: '@codeceptjs/allure-legacy'
},
selenoidOptions: {
sessionTimeout: "300s",
enableVNC: false,
enableVideo: false
},
require: ["ts-node/register"]
}
};
@danielrentz @davert
- Dominant language
- JavaScript
- Stars
- 4.2k
- Forks
- 756
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 16
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from codeceptjs/CodeceptJS
-
stale
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
codeceptjs/CodeceptJS#5420 · 1 comment ·
-
stale
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
codeceptjs/CodeceptJS#5358 · 1 comment ·
-
stale
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
codeceptjs/CodeceptJS#4958 · 10 comments · 2 reactions ·
-
stale
Difficulty 1/5 Under an hour Newbie friendliness 72/100
codeceptjs/CodeceptJS#4778 · 3 comments ·
-
stale
Difficulty 4/5 3-5 days Newbie friendliness 38/100
codeceptjs/CodeceptJS#5618 · 1 comment ·
All issues in codeceptjs/CodeceptJS
Similar issues
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-webui/open-webui#30750 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100