serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
718 stars 516 forks source link

How do we pass the Driver as RemoteDriver for Grid 4? #2794

Open deepthi-ravindra opened 2 years ago

deepthi-ravindra commented 2 years ago

We used to use driver settings as below for Selenium 3: webdriver.driver=provided webdriver.provided.type=mydriver

drivers.SeleniumGridSerenityDriver But this is not working with Selenium Grid 4. Getting error: net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class net.thucydides.core.webdriver.ProvidedDriver Caused by: net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate new WebDriver instance of type class net.thucydides.core.webdriver.ProvidedDriver (Could not instantiate the custom webdriver provider of type mydriver). See below for more details. Caused by: java.lang.RuntimeException: Could not instantiate the custom webdriver provider of type mydriver Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Could not start a new session. Could not start a new session. The path to the driver executable The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from https://chromedriver.storage.googleapis.com/index.html Please advise.
zzoubian commented 2 years ago

It can be set this way: webdriver.driver = "remote" webdriver.remote.url = "http://yourseleniumgridhost:4444/wd/hub" webdriver.remote.driver = "chrome"

deepthi-ravindra commented 2 years ago

Unfortunately, this isn't working.. using serenity 3.2.4

patrykost commented 2 years ago

hi @deepthi-ravindra, looks like we've noticed same issue: https://github.com/serenity-bdd/serenity-core/issues/2821