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

Aperta
#5,338 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, nodejs
Ambito
testing

Direzione di ricerca

Inizia con la configurazione WebDriver segnalata in codecept.conf.js, in particolare con l’impostazione services: ["chromedriver"] e i dettagli dell’ambiente macOS. Riproduci la configurazione su macOS e verifica se il browser si avvia senza avviare manualmente Selenium Standalone; l’attività è completata quando l’errore di connessione non si verifica più.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
4.2k
Fork
756
Merge medio
2g 9h
PR unite (30g)
16

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codeceptjs/CodeceptJS

Tutte le issue di codeceptjs/CodeceptJS

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.