serenity-bdd / serenity-cucumber-starter

A skeleton project for Serenity BDD and Cucumber JVM
Apache License 2.0
179 stars 286 forks source link

Serenity BDD 3.2.5 and Cross browser configuration with Chrome and edge #136

Open chanduguthikonda opened 8 months ago

chanduguthikonda commented 8 months ago

Serenity: 3.2.5 Experiencing issues while trying to run tests on MSEdge browser. Caused by: net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate new WebDriver instance of type class org.openqa.selenium.edge.EdgeDriver (The path to the driver executable The path to the driver executable must be set by the webdriver.edge.driver system property; for more information, see https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/. The latest version can be downloaded from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/). See below for more details.

I've msedgedriver.exe under resources/webdriver/ and below is my serenity.conf webdriver { driver = chrome autodownload = false } drivers { windows { webdriver.chrome.driver = "src/test/resources/webdriver/windows/chromedriver.exe" webdriver.edge.driver = "src/test/resources/webdriver/windows/msedgedriver.exe" } } Gradle string :test --tests "com.testSuite.SmokeTestSuite" -Dwebdriver.driver=edge