无法解析pom.xml中的符号`webdriver.chrome.driver`

时间:2019-08-01 08:47:20

标签: java vaadin pom.xml

webdriver.chrome.driver在我的项目的pom.xml中没有解析的符号。如何摆脱此错误以及webdriver.chrome.driver的用途是什么

<configuration>
   <trimStackTrace>false</trimStackTrace>
   <enableAssertions>true</enableAssertions>
   <systemPropertyVariables>
      <!-- Pass location of downloaded webdrivers to the tests -->                                 
      <webdriver.chrome.driver>${webdriver.chrome.driver</webdriver.chrome.driver>
   </systemPropertyVariables>
</configuration>

1 个答案:

答案 0 :(得分:0)

${webdriver.chrome.driver}引用块中的属性。您没有定义此属性。您可能想使用您要使用的Web驱动程序的正确值添加此块

<properties>
        <webdriver.chrome.driver>my web driver</webdriver.chrome.driver>
    </properties>