import org.openqa.selenium.By;报错的解决办法添加: selenium-server-standalone-3.9.1.jar https://blog.csdn.net/vikeyyyy/article/details/79961123