1. 程式人生 > >新增selenium對應的jar包至pom.xml

新增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提示,匯入即可(匯入完成後,字型恢復正常)