Chrome From Selenium Won't Sync
I am trying to open up a selenium browser with sync option enabled. Either I specify --used-data-dir (having all the cookies and extensions from my google account loaded on seleniu
Solution 1:
I finally found a solution. So when you start chrome through selenium, even if you are not specifying the --disable-sync argument, it specifies it itself. In other words, visiting chrome://version in a newly generated selenium browser on the list of command lines there is the --disable-sync
argument. So basically I first excluded it like so:
options.add_experimental_option(
'excludeSwitches',
['disable-sync'])
and then I enabled it like so:
options.add_argument('--enable-sync')
since if didn't excluded it before enabling it, both the --disable-sync
and the --enable-sync
would be in the command lines list.
Post a Comment for "Chrome From Selenium Won't Sync"