How selenium server to avoid being detected

How selenium server to avoid being detected
  selenium is used to complete the browser automation-related operations. Some may develop browser-based automation-related operations (behavior action) in the form of code, when the code is executed, the browser will automatically trigger relevant events but this does not prevent the detection server. when the developer input tools window.navigator.webdriver open in a browser displays true, the server is described is detected, the display will normally undefined, as shown in FIG.

 

 

Here we have set the selenium, to avoid being detected.

from selenium.webdriver import ChromeOptions # introduced into the module 
option = ChromeOptions () # instantiate a ChromeOptions objects
option.add_experimental_option ( 'excludeSwitches', [ ' enable-automation']) # key-value pairs to be added as parameters
driver = webdriver. Chrome (options = option)

 

Guess you like

Origin www.cnblogs.com/Ethan-Sun/p/11950116.html