Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1K
Views
WebDriverError: error desconocido: net::ERR_CONNECTION_REFUSED

Hola, intenté ejecutar la prueba de selenio en la ventana acoplable.

 const { Builder, By} = require("selenium-webdriver"); const chrome = require('selenium-webdriver/chrome'); const assert = require('assert') async function addCadastreTest() { const options = new chrome.Options() options.setAcceptInsecureCerts(true) let driver = await new Builder() .forBrowser("chrome") .usingServer('http://localhost:4444/wd/hub') .setChromeOptions(options) .build(); await driver.get("http://localhost:3000/"); await driver.findElement(By.id("fit")).click() assert(await driver.switchTo().alert().getText() == "Quel est le nom de votre commune ?") { const alert = await driver.switchTo().alert() await alert.sendKeys("Lons le Saunier") await alert.accept() } await driver.quit(); } addCadastreTest();

Este es el stacktrace del error:

 mapbox\node_modules\selenium-webdriver\lib\error.js:522 let err = new ctor(data.message) ^ WebDriverError: unknown error: net::ERR_CONNECTION_REFUSED (Session info: chrome=102.0.5005.61) at Object.throwDecodedError mapbox\node_modules\selenium-webdriver\lib\error.js:522:15) at parseHttpResponse (mapbox\node_modules\selenium-webdriver\lib\http.js:549:13) at Executor.execute (mapbox\node_modules\selenium-webdriver\lib\http.js:475:28) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.execute (mapbox\node_modules\selenium-webdriver\lib\webdriver.js:735:17) at async addCadastreTest (mapbox\test\addCadastre.spec.js:14:5) { remoteStacktrace:

Estoy atascado porque traté de ejecutar esta prueba en Java con selenio en la ventana acoplable y funcionó, pero en JavaScript recibo este extraño error de conexión rechazado. Si alguien tiene una idea para resolver mi problema gracias.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!