问题:Starting ChromeDriver 77.0.3865.40 (f484704e052e0b556f8030b65b953dce96503217-refs/branch-heads/3865@{#442}) on port 17153
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
org.openqa.selenium.SessionNotCreatedException: session not created
from disconnected: unable to connect to renderer
解决方案: host文件中未添加 127.0.0.1 localhost
本文详细探讨了在使用Selenium进行自动化测试时遇到的问题:ChromeDriver启动失败,具体表现为SessionNotCreatedException错误,并给出了可能的解决方案,即检查host文件是否正确配置了127.0.0.1 localhost。
2308

被折叠的 条评论
为什么被折叠?



