-
Notifications
You must be signed in to change notification settings - Fork 22
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
ChromeDriver 96+ is not compatible with Selenium 3 #1307
Comments
We need to run our tests with a current Chrome instance. Therefore, it is mandatory that we can run the vaadin testbench with a current Selenium version. Also mentioned by #1279 |
This issue should really say "Some workaround used inside the Flow project no longer works with Chrome 96+". As far as I know, all TestBench provided API works fine with Chrome 96. We test with it ourselves every day. What issue are you experiencing @cdir? |
We had some tests that used the same workaround to get the shadow root. We have already changed the code but it would be much better to use a new Selenium version with a stable support. We also have several other non-reproducible bugs that we would have hoped would be less with a new selenium version. For example (happens frequently since a few days):
|
Ok, so #1279 covers upgrading to Selenium 4. Can this be closed then because TestBench cannot fix workarounds done inside
At least what I have seen earlier, these have almost always indicated a problem in chrome/chromedriver and not Selenium. |
For this reason, we have already updated Chrome/Chromedriver to the latest version. But since we still get the error, we wanted to go to the latest Selenium version. Apart from that, is there any reason to stay on such an old Selenium version? I think new versions may be more stable and have additional features, like support for shadow dom. |
TestBench 8 is based on Selenium 4. The beta version is part of Vaadin 23 beta today. You should try it out to see if it resolves your problems |
The following code getting the shadow root from
WebComponent
instance won’t work with ChromeDriver 96+ and Selenium 3:https://github.com/vaadin/flow/blob/375eab86653d5866fb3ea2faba1c4600df976e1b/flow-[…]il/src/main/java/com/vaadin/flow/testutil/TestBenchHelpers.java
because of breaking changes in ChromeDriver to be compliant with w3c spec.
It fails with
java.lang.ClassCastException: class com.google.common.collect.Maps$TransformedEntriesMap cannot be cast to class org.openqa.selenium.WebElement
.Here is an example how to use ChromeDriver 96+ and Selenium 4.1:
Here is a workaround for ChromeDriver 95 and Selenium 3:
More information here https://giters.com/SeleniumHQ/selenium/issues/10050
The text was updated successfully, but these errors were encountered: