Chrome/firefox/safari- browser does not auto-start on macOS unless Selenium Standalone is manually launched
まだ誰も着手していません。
評価
- 難易度
- 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
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 16
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codeceptjs/CodeceptJS のほかの issue
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
codeceptjs/CodeceptJS#5420 · コメント 1 件 ·
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
codeceptjs/CodeceptJS#5358 · コメント 1 件 ·
-
stale
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
codeceptjs/CodeceptJS#4958 · コメント 10 件 · リアクション 2 件 ·
-
stale
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
codeceptjs/CodeceptJS#4778 · コメント 3 件 ·
-
stale
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
codeceptjs/CodeceptJS#5618 · コメント 1 件 ·
codeceptjs/CodeceptJS の issue をすべて見る
似ている issue
-
bot:ai-assisted component:compact-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
midnightntwrk/midnight-sdk#403 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100