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

Could not instantiate new WebDriver instance if ONLY 'webdriver.capabilities.browserName' set and neither legacy 'webdriver.remote.driver' nor 'webdriver.driver' properties #2947

Closed
arustamov opened this issue Oct 20, 2022 · 3 comments

Comments

@arustamov
Copy link
Contributor

So with the following config:
webdriver.capabilities.browserName - set
webdriver.remote.driver - NOT set
webdriver.driver - NOT set

Caused by: net.thucydides.core.webdriver.DriverConfigurationError:
Could not instantiate new WebDriver instance of type class org.openqa.selenium.chrome.ChromeDriver (Remote driver not specified - you need to specify the name of the remote driver either in the webdriver.capabilities.browserName or in the legacy webdriver.remote.driver or webdriver.driver properties.). See below for more details.

@arustamov arustamov changed the title Could not instantiate new WebDriver instance if ONLY webdriver.capabilities.browserName and neither legacy webdriver.remote.driver nor webdriver.driver properties Could not instantiate new WebDriver instance if ONLY webdriver.capabilities.browserName set and neither legacy webdriver.remote.driver nor webdriver.driver properties Oct 20, 2022
@arustamov arustamov changed the title Could not instantiate new WebDriver instance if ONLY webdriver.capabilities.browserName set and neither legacy webdriver.remote.driver nor webdriver.driver properties Could not instantiate new WebDriver instance if ONLY 'webdriver.capabilities.browserName' set and neither legacy 'webdriver.remote.driver' nor 'webdriver.driver' properties Oct 20, 2022
@wakaleo
Copy link
Member

wakaleo commented Oct 20, 2022

This is expected behavior - you need to define the driver at least using the webdriver.driver property.

@arustamov
Copy link
Contributor Author

Then the error message looks misleading, doesn't it?

public static final String MISSING_REMOTE_DRIVER_PROPERTY = "Remote driver not specified - you need to specify the name of the remote driver either in the webdriver.capabilities.browserName or in the legacy webdriver.remote.driver or webdriver.driver properties.";

@wakaleo
Copy link
Member

wakaleo commented Nov 7, 2022

Fixed: 87af1b1

@wakaleo wakaleo closed this as completed Nov 7, 2022
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

2 participants