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

279
Views
El controlador PhantomJS no puede crear una sesión en NodeJS y Selenium

Tengo una aplicación que funciona bien con Chrome y quería pasarme a PhantomJS para que funcione más rápido, ya que tiene que pasar por muchas URL.

 const driver = new Builder() .forBrowser("chrome") .usingServer("http://localhost:4444/wd/hub") .build();

Este código para crear mi controlador funciona bien para chrome , pero cuando reemplazo chrome con phantomjs el siguiente error:

 SessionNotCreatedError: Unable to create session from { "desiredCapabilities": { "browserName": "phantomjs" }, "capabilities": { "firstMatch": [ { "browserName": "phantomjs" } ] } } Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53' System info: host: '', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_301' Driver info: driver.version: unknown at Object.checkLegacyResponse (C:\Users\\Desktop\\node_modules\selenium-webdriver\lib\error.js:553:15) at parseHttpResponse (C:\Users\\Desktop\\node_modules\selenium-webdriver\lib\http.js:635:13) at Executor.execute (C:\Users\\Desktop\\node_modules\selenium-webdriver\lib\http.js:569:28) at processTicksAndRejections (node:internal/process/task_queues:94:5) { remoteStacktrace: '' }

También descargué y coloqué el ejecutable PhantomJS.exe en mi directorio.

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!