简体   繁体   中英

Python Selenium Chrome not running after OS upgrade

I recently changed my OS to win11 which afterwards i've not been able to run selenium. When running, it displays this as the output "selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at localhost:1111 from chrome not reachable"

I used "chrome.exe --remote-debugging-port=1111" to open chrome using CMD but it displays this "'chrome.exe' is not recognized as an internal or external command, operable program or batch file." instead of asking for admin right and then opening as usual.

I managed to fix chrome's error. I added chrome application path to the environment variable and it worked.

This C:\\Program Files\\Google\\Chrome\\Application\\ is fixed the CMD error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM