Error: Server has not been started

22 views
Skip to first unread message

Junior

unread,
Jun 25, 2024, 7:39:33 AM (8 days ago) Jun 25
to Selenium Users
Hi, I’m trying to solve a problem. I Need to get the address where it is running, example the IP: 000.00.00.0:0000, but when I try to access, from the Error: Server has not been started. Selenium version : 4.21, nodejs version: 20.15.
const { Builder } = require('selenium-webdriver')
const chrome = require('selenium-webdriver/chrome')

class WebDriver {
build() {
const driver = new Builder().forBrowser('chrome').build()
driver.get('www.google.com')
console.log(chrome.Driver.getDefaultService().address())
}
}

new WebDriver().build()
Reply all
Reply to author
Forward
0 new messages