mabinogi233 / UndetectedChromedriver

Custom Selenium Chromedriver for Java can pass almost all selenium check. It's the Java version for undetected-chromedriver
GNU General Public License v3.0
66 stars 13 forks source link

This seems can not pass https://bot.sannysoft.com/ test? #4

Closed young-kingdom closed 1 year ago

young-kingdom commented 1 year ago

I copy your code to my project,and run it navigate to https://bot.sannysoft.com/, but the 'Fingerprint Scanner tests' is show anything,When doing automated crawler testing, the server status returned by the other party's interface is abnormal, but when I use the Python version of UndetectedChromedriver, it is normal.Is me anywhere not right?Can you help me?

fun init() {
    chromeDriver = ChromeDriverBuilder().build(ChromeOptions(), driverHome,true,true)
    chromeDriver.get("https://bot.sannysoft.com/")
    chromeDriverService = ChromeDriverService.Builder().usingDriverExecutable(File(driverHome)).build()
    chromeDriverService.start()
}

image

mabinogi233 commented 1 year ago

image

When I use it is the question not occurred, so I think this problem may be caused by the chrome version.

young-kingdom commented 1 year ago

Thanks.it's my wrong,i push wrong params.there's another question,what does function _cdc Props in class Undetected_ChromeDriver do?After calling this method, using Chromedriver.get() will delay the welcome interface for a few seconds before navigate to the url.

mabinogi233 commented 1 year ago

The cdp command is used to issue commands to chromedriver. In UndetectedChromedriver, it is mainly used to modify the chromedriver environment information under selenium. For more details, you could see UndetectedChromedriver.java class.

young-kingdom commented 1 year ago

Thank for your help!