Java_Selenium_window.navigator.webdriver解决方案(selenium被识别的解决方法 )
selenium被识别的解决方法
ChromeDriver driver = new ChromeDriver(options); Map<String,Object> command = new HashMap<>(); command.put("source","Object.defineProperty(navigator, 'webdriver', {get: () => undefined})"); driver.executeCdpCommand("Page.addScriptToEvaluateOnNewDocument",command);