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

253
Views
Why is Selenium returning this error, and how do I fix it?

How do I fix this selenium error?

  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location c:\Users\aaron\Downloads\webscraper\chromedriver.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Here is my code:

const {Builder} = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');

(async function openChromeTest() {
    try {
    let options = new chrome.Options().setChromeBinaryPath(`${__dirname}\\chromedriver.exe`).addArguments("--disable-dev-shm-usage", "--no-sandbox", "--headless");
    let driver = await new Builder()less"
                .setChromeOptions(options)
                .forBrowser('chrome')
                .build();
    await driver.get('https://www.google.com');
    await driver.quit();
    } catch (error) {
    console.log(error)
    }
})();

I tried adding --disable-dev-shm-usage --no-sandbox --headless arguments as WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser says to do but that did not fix it.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Could you share upper side of your code snippet.

about 4 years ago · Juan Pablo Isaza Report
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!