I cloned the latest version of serenity-cucumber-starter and built it. I then ran it using mvn clean verify. It looks like WebDriverManager recognised the version of chrome that is on my mac and indeed downloaded the correct version of chromedriver to match the chrome I am using. However, from the next line of log text, it appears it starts an earlier version of Chromedriver (90.0.4430.24) and this causes my tests to fail due to
Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 90
Here is the log:
20:15:30.988 [pool-2-thread-1] INFO n.s.c.w.d.ChromeDriverProvider - Using automatically driver download
20:15:31.517 [pool-2-thread-1] INFO i.g.bonigarcia.wdm.WebDriverManager - Using chromedriver 107.0.5304.62 (since Chrome 107 is installed in your machine)
20:15:31.525 [pool-2-thread-1] INFO i.g.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /Users/markdevine/.m2/repository/webdriver/chromedriver/mac64/107.0.5304.62/chromedriver
20:15:32.250 [pool-2-thread-1] INFO n.s.c.w.d.ProvideNewDriver - Instantiating driver
20:15:32.252 [pool-2-thread-1] INFO n.s.c.w.d.ProvideNewDriver - Driver capabilities: Capabilities {acceptInsecureCerts: false, browserName: chrome, chrome.switches: --start-maximized;--test-ty..., goog:chromeOptions: {args: [--start-maximized, --test-type, --no-sandbox, --ignore-certificate-errors;\n, --disable-popup-blocking, --disable-default-apps, --disable-extensions-file-a..., --incognito, --disable-infobars, --disable-gpu, --headless], extensions: []}, loggingPrefs: org.openqa.selenium.logging...}
Starting ChromeDriver 90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}) on port 38892
I cloned the latest version of serenity-cucumber-starter and built it. I then ran it using mvn clean verify. It looks like WebDriverManager recognised the version of chrome that is on my mac and indeed downloaded the correct version of chromedriver to match the chrome I am using. However, from the next line of log text, it appears it starts an earlier version of Chromedriver (90.0.4430.24) and this causes my tests to fail due to
Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 90
Here is the log: