背景:
学习webmagic过程中,为了解决爬取动态网页的问题,所以使用selenium,在浏览各个博主的文章,相继添加了多个有关selenium的依赖。
报错详情:
在代码首行报错
The type org.openqa.selenium.interactions.HasTouchScreen cannot be resolved. It is indirectly referenced from required .class files
代码:
package per.nydia.spider;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class ChromeSelenium {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:Windows\\System32\\chrom