diprajpatra / selenium-stealth

Trying to make python selenium more stealthy.
MIT License
629 stars 89 forks source link

Settings doesn't apply on all tabs (but only on the first one) #31

Open fabifont opened 2 years ago

fabifont commented 2 years ago

Selenium stealth overrides only the settings of the first tab.

First tab: image

Second tab: image

Is there a way to override the driver settings globally?

adventurebeast commented 2 years ago

I am having this issue as well. In fact. It seems the settings work on the first page load and do not work after that.

fabifont commented 2 years ago

@adventurebeast Seems like this project is abandoned

adventurebeast commented 2 years ago

@fabifont any suggestions on better projects that are current?

fabifont commented 2 years ago

@adventurebeast I don't know actually. But you can ""fix"" that problem by applying stealth to every tab you open.

adventurebeast commented 2 years ago

@fabifont thank you! I am new to this. I tried entering the bot.sannysoft.com in the same tab as the driver launched and it failed as well. Oh well. It seems to be working on first launch.

adventurebeast commented 2 years ago

Do you have the syntax for applying stealth to every tab that I open?

SmartManoj commented 2 years ago

@fabifont any suggestions on better projects that are current?

https://stackoverflow.com/a/68745328

adventurebeast commented 2 years ago

Thanks @SmartManoj. I tried this repo and UC seemed to work similarly. The second tabs on my browser are detected. The first tabs seem to be fine however.

Would still like to find a solution for Selenium Stealth as it performs much faster than UC.

BukuBukuChagma commented 1 year ago

@adventurebeast did you find a solution?

adventurebeast commented 1 year ago

@BukuBukuChagma I am using Undetected Chromedriver. Seems to work better than selenium stealth for real world applications. It doesnt pass this test either, but it does work better.

BukuBukuChagma commented 1 year ago

@adventurebeast ah. I tried that too and it surely works but for my use case I'm also using proxies that require authentication. So, I'm using selenium-wire for that. With undetected-chromedriver I'm not sure how to get the proxies to work. I tried some extension solutions like the one given in top answer in this thread : stackoverflow but this works with orignal webdriver but doesn't seem to work with undetected-chromedriver Ah not really sure what to do lol

adventurebeast commented 1 year ago

@BukuBukuChagma Yes I have had the same issues with proxies :/ seems like you are doing what I would do too from the research I have done. I have not tried selenium-wire, but that seems to be the solution.