Can a website detect when you are using selenium with chromedriver?

后端 未结 19 2712
情歌与酒
情歌与酒 2020-11-21 05:41

I\'ve been testing out Selenium with Chromedriver and I noticed that some pages can detect that you\'re using Selenium even though there\'s no automation at all. Even when I

相关标签:
19条回答
  • 2020-11-21 06:30

    Example of how it's implemented on wellsfargo.com:

    try {
     if (window.document.documentElement.getAttribute("webdriver")) return !+[]
    } catch (IDLMrxxel) {}
    try {
     if ("_Selenium_IDE_Recorder" in window) return !+""
    } catch (KknKsUayS) {}
    try {
     if ("__webdriver_script_fn" in document) return !+""
    
    0 讨论(0)
提交回复
热议问题