NosuchSessionExceptopn:invalid session id

错误背景:
在linux中运行java+selenium+chromedriver的jar程序,报NosuchSessionExceptopn:invalid session id
及cannot find chrome binary

错误详情:
在这里插入图片描述
在代码中添加

ChromeOptions options = new ChromeOptions();
options.setBinary("/usr/bin/etc/cron.daily/google-chrome");

猜你喜欢

转载自blog.csdn.net/weixin_40626699/article/details/89399029
今日推荐