添加selenium对应的jar包至pom.xml

1.进入https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java,点开相应的版本

2.复制图中选中的代码,粘贴至pom.xml文件(此时是红色字体)

3.idea右上角会出现Maven projects need to be imported提示,导入即可(导入完成后,字体恢复正常)

猜你喜欢

转载自www.cnblogs.com/crystal-hmy/p/10065873.html