-
-
Notifications
You must be signed in to change notification settings - Fork 513
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 of type class (gecko on Windows 10) #2729
Comments
If you are using a custom driver you have total control - debug and see what it is doing. But why do you need a custom driver for that? |
Hi @wakaleo, I'm using the custom driver to set some important parameters for chrome and edge like:
Plus some experimental settings for chrome and edge like:
For the gecko driver I'm mainly interested to control the size. If there is a better serenity way with @Managed please tell me. But I have heard that gecko driver could have an issue on windows platforms with the driver path. |
You almost never need to use a custom driver, and it prevents a number of Serenity optimisations. You can configure most chrome options via
I rarely use Firefox locally as I have found it unstable and unreliable in the more recent versions. |
That sounds promising! Unfortunately, our customer is making use of firefox and I have to take the gecko driver testing into account. Out of curiosity: What kind of optimisations you are talking about? |
Pretty much any configuration you specify in the serenity.conf file will not work for custom drivers. |
One final question if you allow: What could be the main reason for "Could not instantiate new WebDriver instance"? |
That's just a wrapper for a Selenium failure, so it can mean anything. |
Thanks, John! Have a nice week. |
@wakaleo Hi John, following your suggestion I'm planning to replace our custom driver implementation by the common serenity implementation. You were pointing me to the serenity docs which are a nice entry point to serenity framework. I found some interesting hints on how to define driver settings. But how would you switch between e.g. FirefoxDriver and RemoteWebDriver? Thanks and best regards, André |
Dear Serenity Team,
in the last days I've updated our serenity cucumber test framework to latest version 3.2.0 which also supports selenium 4.1.2 version. I'm using a custom driver which loads the corresponding webdriver via webdriver manager. Chrome and edge are working well but gecko driver is only starting on MacOS but not on Windows:
MacOS:
Windows:
Unfortunately, I don't have further details so far even when running in debug mode. Do you have any idea what could be the reason for this exception on Windows system?
Best regards, André.
The text was updated successfully, but these errors were encountered: