在用selenium添加cookie时遇到了“Can only set Cookies for the current domain”错误,经过一番搜索验证。
问题原因大概如下:某些网页里面用了一些selenium不支持的cookie键。
问题解决:通过try/except忽略这种错误继续执行就OK了,不影响正常功能。
Selenium在添加cookie时“Can only set Cookies for the current domain”错误处理
最新推荐文章于 2023-06-16 17:07:01 发布
1066

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



