When trying to use FileUtils
I get "cannot be resolved" error.
Then, how do I install FileUtils
library to be able to use it in Eclipse? I see it is an Ant utility, but I am not sure how many jars I need to install.
Download the latest version of Apache Common IO jar file from commons-io-2.11. 0-bin. zip. At the time of writing this tutorial, we have downloaded commons-io-2.11.
Open the project's properties---> Java Build Path ---> Libraries tab ---> Add External Jars
will allow you to add jars.
You need to download commonsIO from here.
Now selenium supports following code:
FileHandler.copy(src, dest);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With