I am using Selenium. My application shows an error page. It throws the following error:
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_CONNECTION_REFUSED
(Session info: chrome=104.0.5112.102)
Stacktrace:
This is my code
from selenium import webdriver
driver = webdriver.Chrome('C:path/in/the/pc/chromedriver_win32/chromedriver.exe') ## to initialize the webdriver to the Selenium
driver.get('http://127.0.0.1:5000/base')
How can I resolve the above error?