Я новичок в фреймворке Serenity Bdd; Я клонировал этот репозиторий: https://github.com/serenity-bdd/serenity-screenplay-train-demo
Os: Ubuntu: 17.04
Intellij IDEA Community 2017.3
Pom.xml: https://github.com/serenity-bdd/serenity-screenplay-train-demo/blob/master/pom.xml
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-screenplay</artifactId>
<version>${serenity.version}</version>
</dependency>
И я пытаюсь запустить автоматические тесты, но сталкиваюсь с ошибкой:
net.thucydides.core.webdriver.UnsupportedDriverException:
Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
.
.
.
Caused by: net.thucydides.core.webdriver.UnsupportedDriverException: Could
not instantiate new WebDriver instance of type class
org.openqa.selenium.chrome.ChromeDriver (The path to the chromedriver driver
executable must be set by the webdriver.chrome.driver system property; for
more information, see
https://sites.google.com/a/chromium.org/chromedriver/downloads. The latest
version can be downloaded from
https://sites.google.com/a/chromium.org/chromedriver/downloads
.
.
.
.
Caused by: java.lang.IllegalStateException: The path to the chromedriver
driver executable must be set by the webdriver.chrome.driver system
property; for more information, see
https://sites.google.com/a/chromium.org/chromedriver/downloads. The latest
version can be downloaded from
https://sites.google.com/a/chromium.org/chromedriver/downloads
Я знаю, что мне не хватает некоторых банок или библиотек, но я не знаю, как их добавить или что добавить. Я предполагаю, что мне следует обновить maven pom.xml, чтобы добавить недостающие зависимости?
ОБНОВЛЕНИЯ:
Оказалось, что pom.xml
указывал на более старые версии библиотек, поэтому я обновил их и теперь получаю новую ошибку:
ОШИБКА n.t.core.webdriver.WebDriverFacade — НЕУДАЧА СОЗДАТЬ НОВЫЙ ЭКЗЕМПЛЯР WEBDRIVER_DRIVER класса org.openqa.selenium.chrome.ChromeDriver: не удалось создать экземпляр нового экземпляра WebDriver класса типа org.openqa.selenium.chrome.ChromeDriver (путь к драйверу chromedriver исполняемый файл должен быть задан системным свойством webdriver.chrome.driver; для получения дополнительной информации см. https://sites.google.com/a/chromium.org/chromedriver/downloads. Последнюю версию можно загрузить с сайта https://sites.google.com/a/chromium