Я следую примеру на этой странице, чтобы настроить используемый профиль:
http://toolsqa.com/selenium-webdriver/custom-firefox-profile/
Однако в моем коде я получаю сообщение об ошибке «Удалить аргумент, соответствующий драйверу Firefox»:
ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("testProfile");
WebDriver driver = new FirefoxDriver(myprofile); // does not like myprofile as an argument here
Спасибо
UPDATE
Мне удалось решить эту проблему, слегка изменив решение try-catch:
ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("testProfile"); //added this
FirefoxOptions options = new FirefoxOptions();
options.setProfile(myprofile);