ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.93k stars 1.16k forks source link

Use undetected-chromedriver in C# #540

Open colb-sauce opened 2 years ago

colb-sauce commented 2 years ago

Hello,

This looks like a super helpful tool and I would really like to use it in C#.

To create a new driver in C#, you would do the following: using OpenQA.Selenium; using OpenQA.Selenium.Chrome;

IWebDriver driver = new ChromeDriver();

Where the path is looking for chromedriver.exe.

Is there any way to use undetected-chromedriver here to initiate the driver? I installed undetected-chromedriver and see a bunch of python files but dont know how to use them to initiate a driver in c#. Is there any way to initiate a driver in C# like so?

I appreciate you,

sebdelsol commented 2 years ago

check #144 : it's for Java support, but it would be the same process and it's achievable since Selenium has a dotnet version too.

mahlers2 commented 2 years ago

@colb-sauce you got any working solution for this? If so, i would be very interested :)

colb-sauce commented 2 years ago

@mahlers2 I ended up just writing my automation in python and calling the scripts from my C# code.

charleshoong97 commented 2 years ago

Is anyone find out how to do this in c#? Can share it? Thanks.

fysh711426 commented 2 years ago

@charleshoong97

I used C# to implement some simple functions from this repo, for your reference (It's not perfect yet, there are still some difficult problems to solve)

https://github.com/fysh711426/UndetectedChromeDriver

Rwing commented 1 year ago

In addition to @fysh711426's library, I also found another library https://github.com/emre-gon/Selenium.WebDriver.UndetectedChromeDriver, but I didn't compare it and don't know which one is better

fysh711426 commented 1 year ago

@Rwing You can try mine.

Smithy1998 commented 1 year ago

@fysh711426 Brilliant work, exactly what I was looking for! Thank you :)

perogi commented 1 month ago

@fysh711426 - any plan on updating your version to work with 129?