0

我正在尝试构建和运行此https://github.com/Airtnp/CheggDownloader 我的环境是 eclipse,我正在尝试运行此自动化来截图并使用 xpath 下载网页上的特定区域。我在这里粘贴我的错误和配置。

在端口 14642 上启动 ChromeDriver 2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73) 只允许本地连接。线程“main” java.lang.Error 中的异常:未解决的编译问题:ShootingStrategy 无法解析为类型 ShootingStrategies 类型的方法 viewportNonRetina(Integer, int, int) 未定义

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 驱动程序中运行,打开网站并登录,但不会根据需要滚动或转到下一个解决方案。感谢您的帮助

4

0 回答 0