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

A lot of "cannot find symbol" compilation errors #8

Closed tabatinga0xffff closed 5 months ago

tabatinga0xffff commented 5 months ago

On Java 11 -- which is required by the project

java -version
openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment (build 11.0.22+7)
OpenJDK 64-Bit Server VM (build 11.0.22+7, mixed mode)

mvn compile or mvn clean package produces looooooots of cannot find symbol errors. Dozens of them

tabatinga0xffff commented 5 months ago

mvn compile ==>

imagen

@mabinogi233

mabinogi233 commented 5 months ago

Because when I was developing, the selenium version 4.0.0 or above did not exist in the maven repository, so I adding dependencies of selenium version 4.0.0 by manually(It means not use maven). you can manually import the jar package of selenium version 4.0.0 or above to solve this problem.

mabinogi233 commented 5 months ago

image

If use IDEA you can do this.

mabinogi233 commented 5 months ago

selenium version > 4.0.0 (must, because when version < 4 selenium can't excute cdp script)

tabatinga0xffff commented 5 months ago

You propose to copy-paste the code of this library into my project it's not a lbrary then but a code-snippet