Would you like to replace the existing file was asked while extracting selenium-server-standalone jar file

946 views Asked by At

After having downloaded the selenium-server-standalone-3.141.59 jar file from https://www.selenium.dev/downloads/, I tried to extract the files. During the extraction, a pop-up shows up saying:

"The following file already exists. C:\Selenium3\selenium-server-standalone-3.141.59\META-INF\LICENSE.txt

Would you like to replace the existing file [file 1 with 11.969 bytes modified on 02/11/2014 19:52] with this one [file 2 with 36.116 bytes modified on 25/04/2013 16:52]"

I then get to choose from options like 'Yes', 'Yes to all', 'No', 'No to all' etc. Why is this happening? I was expecting a normal extraction in which all files are simply extracted and no questions asked about whether to replace certain files or not. Is there a bug with this jar file? Please see attached screenshot.

screenshot

1

There are 1 answers

5
undetected Selenium On

I was able to reproduce the error...

extract_selenium_jar

while trying to extract the contents of selenium-server-standalone-3.141.59.jar.


Solution

If your usecase is to use selenium-server-standalone-3.141.59.jar within a Java project, instead of extracting the selenium-server-standalone-3.141.59.jar you need to add the jar file as an External JAR in the JAVA BUILD PATH for your project within the IDE as follows:

JavaBuildPath