0

I use Testcontainers (1.14.1) with Selenium (4.0.0-alpha-5) and Chrome to run my Java Integration Tests.

But when I run my tests my Angular Frontend aren't rendered. As I found out it's because the Chrome Version inside the container is to old. The Chrome has Version 43. So to fix my tests I have to update Chrome.

But how?

Nicklas2751
  • 802
  • 1
  • 9
  • 22

1 Answers1

0

The solution: Use latest stable Selenium Version! In my case 3.141.59

How I found the Solution:

As I found out, Selenium has current Chrome Versions as Docker Tags.

So the Problem had to be on Testcontainers side. I searched for how they know which container tag to use and found this:

    /**
     * Based on the JARs detected on the classpath, determine which version of selenium-api is available.
     * @return the detected version of Selenium API, or DEFAULT_SELENIUM_VERSION if it could not be determined
     */
    public static String determineClasspathSeleniumVersion() {

Whole source at GitHub

I looked into my Selenium API jar and there was the problem no Selenium-Version inside the manifest. And no container tag for the 4.0.0-alpha-5 of Selenium. So I just downgraded to the last stable version of Selenium.

Nicklas2751
  • 802
  • 1
  • 9
  • 22