之前,笔者给ChromeDriver提过一个BUG:https://bugs.chromium.org/p/chromedriver/issues/detail?id=3370。该BUG主要是Chrome在headless模式下,使用–user-data-dir时未能优雅关闭而导致Cookie持久化失败,过了三个多月终于修复了:
转载时请保留出处,违法转载追究到底:进城务工人员小梅 » 普大喜奔终于修复了!ChromeDriver Issue 3370: Shut down Chrome gracefully or cookie will not be correctly saved to SQLite persistance file