-
-
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
Chrome Version 121 -Could not instantiate class org.openqa.selenium.chrome.ChromeDriver #3408
Comments
I am also having same issue and after upgrading serenity version from 3.6 to 4.0 now stuck in [INFO] |
That is a different issue, most likely a dependency conflict. |
Thanks John @wakaleo . Okay and not able to identify the dependency conflict. Can you help me please? |
This isn't a Serenity issue directly, it is possibly related to old dependencies or drivers in your project or on your system path. See https://github.com/serenity-bdd/serenity-cucumber-starter for an example of the correct dependency configuration. |
Thanks John @wakaleo . above Pom helped to resolved Chrome driver issue. However I am now having below issue. Injectors.getInjector method not supporting in new serenity version. Is there any way to resolve this situation. Injectors.getInjector() method is not supported in Serenity version 4.0.28 |
Read the release notes for 4.0.1 |
Thanks John @wakaleo . It worked and was able to reconfigure environment variable. Now another issue arises Parallel execution is not working. I had parallel execution from 3.2, 3.6 and with same configuration it is not working for 4.1.0. I had max pool size and parallal for 4 thread. Initially it is opening 4 thread but from second go was opening one by one browser which increased my total execution time from 28min to 56min. Please advise me where to find info from this issue. I do not see any release note for parallel in 4.0.1 |
Parallel execution with JUnit 5 is different to JUnit 4 - have a look at the JUnit 5 docs to see how it works. |
I am using Junit5 |
Closing presumed resolved |
Not yet please |
@wakaleo John, I tried all possible solution according to doc you provided still not working. So What happened to my case, I was running parallel for 3 thread and running scenarion outline for 4 test users, i am expecting to open 3 browser in first initiative and one more browser in 2nd attempt to complete same steps with 4 users in parallel execution 3, rather I see 3 browser opened in 1st attempt (which is expected), then more from 2nd, 3rd initiative it is opening single browser and keep continuing for couple times. below is my Junit-Platform-properties file And POM
|
@tarun04sharma - Is parallel working for you? |
@mbarua1 I have not yet implemented and tried parallel testing |
@mbarua1 see https://github.com/serenity-bdd/screenplay-pattern-todomvc.git for an example of how to configure parallel execution with JUnit 5 and Cucumber in Serenity. |
@wakaleo - Thanks John. Doing it now |
John, I tried all options enlisted here with max pool size 4 and 3 test cases(just scenario, not scenario outline), So initially 3 browser opened and all 3 scenario (from same feature file) ran, then i am expecting to finish test execution and generate report. However it is not and again one by one browser was opening and one by one test was running. So total six browser opened (3 in first initiative and one by one). And report says 3 test ran which is weird, I am not understanding which causing this issue. With same set up (junit-platform file and with 4 max pool size )just with serenity 3.6 , I ws running same sets(30 test case) of smoke suite for last 8 month within 25 min and now it is taking 55 just for double run. Initially running as parallel and after a few min open one by one browser. Please suggest me how I can resolve this issue. @wakaleo |
I would need to look at the project setup. Sometimes JUnit 5 can be tricky to configure. If you do need project-specific support we can do this as part of a commercial support contract. |
alright, How to do it and what will be procedure for that? |
See https://www.serenitydojo.academy/serenity-bdd-support-packages |
Could not instantiate new WebDriver instance of type class org.openqa.selenium.chrome.ChromeDriver (Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 121.0.6167.184 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Build info: version: '4.1.2' .
had a similar issue in August with Chrome 116 update , is there any solution for this now .
I am using the below versions ,
<serenity.version>3.2.1</serenity.version>
io.github.bonigarcia
webdrivermanager
5.5.0
Similar to the issue #3227 , any fix for this ?
@wakaleo
The text was updated successfully, but these errors were encountered: