我尝试使用Winodws 7上的Internet Explorer11从net.serenity-bdd:serenity-cucumber-archetype运行简单项目
我做这件事有很多陷阱。
试着避免它:
1.
java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/username/Java/git_other/test/test/target/test-classes/features答:不要使用2.0.42版本。
2.
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://selenium-release.storage.googleapis.com/index.html答:1.转到[https://docs.seleniumhq.org/download/][1]页面下载版本3.14.0,适用于(推荐) 32位或64位Windows IE
2.添加到%PATH% path到IEDriverServer.exe
发布于 2019-04-09 20:52:19
创建项目:
mvn archetype:generate -DarchetypeGroupId=net.serenity-bdd -DarchetypeArtifactId=serenity-cucumber-archetype -DarchetypeVersion=1.8.4Pom.xml中的更改:
<serenity.version>2.0.40</serenity.version>
<serenity.cucumber.version>1.9.33</serenity.cucumber.version>
<webdriver.driver>iexplorer</webdriver.driver>转到页面https://docs.seleniumhq.org/download/ Download version 3.14.0 for (推荐) 32位Windows IE或64位Windows IE
构建项目并通过happy (节省时间):
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------https://stackoverflow.com/questions/55593382
复制相似问题