これをビルドして実行しようとしています https://github.com/Airtnp/CheggDownloader 私の環境は Eclipse で、この自動化を実行してスクリーンショットを作成し、Web ページの特定の領域を xpath で ashot でダウンロードしようとしています。エラーと構成をここに貼り付けます。
ポート 14642 で ChromeDriver 2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73) を起動すると、ローカル接続のみが許可されます。スレッド「メイン」の例外 java.lang.Error: 未解決のコンパイルの問題: ShootingStrategy を型に解決できません メソッド viewportNonRetina(Integer, int, int) は、型 ShootingStrategies に対して未定義です
at ScreenShotDownloader.captureScreen(ScreenShotDownloader.java:73)
at ScreenShotDownloader.downloadBook(ScreenShotDownloader.java:106)
at CheggDownloadRunner.main(CheggDownloadRunner.java:14)
これが私のScreenshotDownloader.javaです:- https://github.com/Airtnp/CheggDownloader/blob/master/src/main/java/ScreenShotDownloader.java
SiteDetailsProperties.java :- https://pastebin.com/Ecw7beVk
Chrome ドライバーで実行され、Web サイトを開いてログインしますが、必要に応じてスクロールしたり、次のソリューションに移動したりしません。どんな助けでも大歓迎ですありがとう