fysh711426 / UndetectedChromeDriver

GNU General Public License v3.0
166 stars 61 forks source link

Accumulation of various device sessions on google #22

Open luanmacek opened 1 year ago

luanmacek commented 1 year ago

Hi, how do I avoid the accumulation of various device sessions when logging in to Google. If I want it to be one device. If necessary, which method in the library should I override so that the user agent does not change

fysh711426 commented 1 year ago

Try setting the same userDataDir.

var userDataDir = @"D:\xxx\ChromeUserData";
using var driver = UndetectedChromeDriver.Create(
    ...
    userDataDir: userDataDir);