问题描述
参考以下解决方案:Chromedriver Save as PDF method not working
在显示用于保存为PDF的Ctrl + P时出现问题时,屏幕显示所有字段均已禁用,并且将立即关闭。我正在使用上述URL中提供的解决方案。除非我使用下面的代码来禁用cookie以及您提供的代码,否则它通常都能正常工作。
我正在使用Chrome驱动程序版本:85.0.4183.102
因此是否有任何冲突。
experimentalFlags = ['same-site-by-default-cookies@2','cookies-without-same-site-must-be-secure@2']
chromeLocalStatePrefs = {'browser.enabled_labs_experiments': experimentalFlags}
chrome_options.add_experimental_option('localState',chromeLocalStatePrefs)
在这方面请帮助我。谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)