In Python, I could easily change the browser "navigator.webdriver" property to false, when using the local chromedriver with my local Chrome browser.
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--disable-blink-features=AutomationControlled")
driver = webdriver.Chrome(chrome_options=options)
driver.get([some url])
After the above, in the Chrome browser console, navigator.webdriver would show "false".
But I do not know how to translate the above to Perl. The following code would still leave the navigator.webdriver as "true". So how do I implement the Python code above in Perl? Is it possible (ideally without using the remote stand-alone selenium server)?
use strict;
use warnings;
use Selenium::Chrome;
my $driver = Selenium::Chrome->new(
custom_args => '--disable-blink-features=AutomationControlled' );
$driver->get([some url]);
Any help would be greatly appreciated!