Man, Firefox is brutal. I spent weeks figuring this out. Here’s what worked for me:
1. Use geckodriver with the `--disable-blink-features=AutomationControlled` flag.
2. Randomize your user agent with every session.
3. Disable JavaScript alerts—they’re a dead giveaway.
Also, check out Scrapy if you’re open to switching tools. It’s not Selenium, but it’s great for scraping without getting caught.
1. Use geckodriver with the `--disable-blink-features=AutomationControlled` flag.
2. Randomize your user agent with every session.
3. Disable JavaScript alerts—they’re a dead giveaway.
Also, check out Scrapy if you’re open to switching tools. It’s not Selenium, but it’s great for scraping without getting caught.
