Getting expection on line "WebDriverManager.chromedriver().setup();

248 Views Asked by At

I am facing the below issue java.lang.NoSuchMethodError: 'java.lang.String org.apache.commons.io.IOUtils.toString(java.io.InputStream, java.nio.charset.Charset)' on line "WebDriverManager.chromedriver().setup();

I am using the latest WebDriverManager version i.e 5.3.1 and the latest commons.io version i.e 2.11.0

1

There are 1 best solutions below

2
On

WebDriverManager 5.3.1 depends transitively on commons-io 2.6. You can try to force that version in your pom.