解决办法:Java使用Selenium JAR包没有帮助文档

现象: 使用Selenium Java jar包时,编写代码按下F2提示如下信息:

            Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.

原因: 没有给Selenium java jar包设置相应的javadoc文档

解决办法:选中eclipse中相应工程的Referenced Libriaries -> 选中selenium-java-****.jar -> 右键 -> 选择Properties -> 弹出窗口中找到Javadoc Location项 ->选中Javadoc URL -> 设置Javadoc location path为:http://seleniumhq.github.io/selenium/docs/api/java/ -> Apply -> OK。

猜你喜欢

转载自blog.csdn.net/dzh0622/article/details/51122849
今日推荐