Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deepthi-ravindra opened this issue Apr 22, 2022 · 3 comments
Open

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

deepthi-ravindra opened this issue Apr 22, 2022 · 3 comments

Comments

@deepthi-ravindra
Copy link

We used to use driver settings as below for Selenium 3:
webdriver.driver=provided
webdriver.provided.type=mydriver
<webdriver.provided.mydriver>drivers.SeleniumGridSerenityDriver</webdriver.provided.mydriver>

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
Copy link
Contributor

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

@deepthi-ravindra
Copy link
Author

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

@patrykost
Copy link

hi @deepthi-ravindra, looks like we've noticed same issue:
#2821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants