florentbr / SeleniumBasic

A Selenium based browser automation framework for VB.Net, VBA and VBScript
BSD 3-Clause "New" or "Revised" License
431 stars 197 forks source link

How can I disable navigator.webdriver using Selenium ChromeDriver ? #216

Open sensitivecereal opened 3 years ago

sensitivecereal commented 3 years ago

I'm trying to disable the "navigator.webdriver" as to make it a bit stealthier, is this the right way? Because even when I do this, it still shows the "Chrome is being controlled by automated test software" ribbon so I don't think it's working.

My code:

Dim bot As New WebDriver
bot.AddArgument "--disable-blink-features=AutomationControlled"
bot.Start "chrome"

Thanks! :)