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
55 stars 11 forks source link

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

Closed young-kingdom closed 8 months ago

young-kingdom commented 8 months 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 8 months 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 8 months 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 8 months 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 8 months ago

Thank for your help!