Chrome/firefox/safari- browser does not auto-start on macOS unless Selenium Standalone is manually launched
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript, nodejs
- 領域
- testing
研究方向
從回報的 codecept.conf.js WebDriver 設定開始,尤其是 services: ["chromedriver"] 設定和 macOS 環境詳細資訊。在 macOS 上重現該設定,並確認瀏覽器是否能在不手動啟動 Selenium Standalone 的情況下啟動;當連線錯誤不再發生時即表示完成。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- JavaScript
- 星號
- 4.2k
- 分支
- 756
- 平均合併
- 1 天 6 小時
- 30 天內合併 PR
- 19
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
codeceptjs/CodeceptJS 的其他 Issue
-
stale
難度 2/5 1-3 小時 新手友好度 72/100
codeceptjs/CodeceptJS#5420 · 1 則留言 ·
維護者通常 1 天內回覆
-
stale
難度 2/5 1-3 小時 新手友好度 76/100
codeceptjs/CodeceptJS#5358 · 1 則留言 ·
維護者通常 1 天內回覆
-
stale
難度 2/5 1-3 小時 新手友好度 78/100
codeceptjs/CodeceptJS#4958 · 10 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
stale
難度 1/5 1 小時以內 新手友好度 72/100
codeceptjs/CodeceptJS#4778 · 3 則留言 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 68/100
codeceptjs/CodeceptJS#5725 ·
維護者通常 1 天內回覆
查看 codeceptjs/CodeceptJS 的全部 Issue
相似的 Issue
-
external-issue to-triage
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
LearningCircuit/local-deep-research#7067 ·
維護者通常 1 天內回覆
-
automated issue report
難度 1/5 1 小時以內 新手友好度 65/100
lirantal/discoprint#32 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆