-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
1.16.1 fails for Selenium 4.0.0 and Chrome browser #4593
Comments
@tobiasstadler what image have you used?
|
You probably need #4580. Just add |
We have a similar issue with 1.16.1 that the class
these two dependencies on compile scope appeared.
|
As far as I can see, the problem is that Selenium 4 introduced @kiview Would it be ok to not execute |
This fix should be applied depending on the Chrome version, it is independent of the Selenium version. Since not applying this flag for images that require it has catastrophic consequences, we shouldn't yet neglect this. |
Ok, but how should we proceed then? Is using reflection an option? |
No need for reflection, we have access to the image name when we configure the container and can therefore do an educated guess based on the tag format of the official images. I have not yet looked into the root cause of the API change in Selenium, so did not yet make up my mind of how to solve this in the most compatible way. As I understand it |
yes, |
I actually meant calling |
It is also broken with selenium < 4 and Firefox as browser, because since 1.16.1 the Chrome dependency is directly integrated and "ChromeOptions" is needed but not found. see https://github.com/synyx/urlaubsverwaltung/runs/3978441190?check_suite_focus=true |
Oh right, that's not good, thanks for reporting @derTobsch. Note that we are using
We could also think about removing |
Maybe I am wrong but in the maven build the dependencies
are now declared |
Thanks for reporting and investigating @derTobsch, we will look into this. |
Same here with Do you guys need any help with resolving this? |
@orange-buffalo thanks for offering your help. If you like, you can review this PR (#4842) and also check if it resolves it for you by using the Jitpack version. |
I've tested #4609 and it works smoothly. |
the method signature of `ChromeOptions#addArguments` has changed: testcontainers/testcontainers-java#4593 (comment) until testcontainers/testcontainers-java#4609 is merged and released, testcontainers artifacts should be installed from jitpack instead of maven so that changes in this open pull request are included.
I am using Selenium 4.0.0 with Chrome as web browser. When I upgrade testcontainers to 1.16.1 I get the following error:
The error does not exist on 1.16.0.
The text was updated successfully, but these errors were encountered: