I want to use Selenium to control Firefox, but I want to control a custom profile of Firefox.
I found this:
File profileDirectory = new File(profileDirectory);
FirefoxProfile profile = new FirefoxProfile(profileDirectory);
WebDriver webDriver = new FirefoxDriver(profile);
But the File symbol is not found and I don’t know what library contains it.
java.io.Fileis part of the standard Java library.The following should allow your code to compile: