您可以使用"附加源"按钮并选择相应的"sources.jar"文件导入源文件。 例如, For WebDriver.class - click on the 'Attach Source' button > in Source Attachment Configuration window > External location > External File button > <navigate to the path of 'selenium-api-4.7.2-sources.jar' file and select that file, it will be available in the 'selenium-java-4.7.2.zip' file which you downloaded from Selenium.dev website> 我的建议是使用'Maven'项目,所以您不需要手动下载jar文件。
1条答案
按热度按时间rbl8hiat1#
您可以使用"附加源"按钮并选择相应的"sources.jar"文件导入源文件。
例如,
For WebDriver.class - click on the 'Attach Source' button > in Source Attachment Configuration window > External location > External File button > <navigate to the path of 'selenium-api-4.7.2-sources.jar' file and select that file, it will be available in the 'selenium-java-4.7.2.zip' file which you downloaded from Selenium.dev website>
我的建议是使用'Maven'项目,所以您不需要手动下载jar文件。