Chrome/firefox/safari- browser does not auto-start on macOS unless Selenium Standalone is manually launched

オープン
#5,338 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, nodejs
領域
testing

調査の方向性

報告された codecept.conf.js の WebDriver 設定、特に services: ["chromedriver"] の設定と macOS 環境の詳細から始めます。macOS で設定を再現し、Selenium Standalone を手動で起動しなくてもブラウザーが起動するか確認します。接続エラーが発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

stale

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codeceptjs/CodeceptJS のほかの issue

codeceptjs/CodeceptJS の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。