The error due to you quit before it loaded. So, we can simply wait for driver.get until it done before quit

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

(async () => {
    let driver = await new Builder().forBrowser('chrome').build();
    await driver.get('');
    await driver.quit();

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top