rubycdp / ferrum

Headless Chrome Ruby API
https://ferrum.rubycdp.com
MIT License
1.71k stars 123 forks source link

Navigate through an incognito session #251

Closed rudasa closed 2 years ago

rudasa commented 2 years ago

Hi folks, I've tried by adding 'incognito' => nil option to browser_options without any luck, Ferrum is still navigating with the regular profile and not incognito (the one that uses the gray color). I need to use the incognito profile because even when the user data dir is different between each Ferrum instance, for some reason the target site is detecting my recurrent visits and disabling some features but it works fine when I use an incognito session.

Any clue to work around it will be very appreciated, thanks!

route commented 2 years ago

Every session of Ferrum is an incognito mode. There are many techniques of detecting your browser. You might need something like https://github.com/rubycdp/ferrum/issues/142