是,
FirefoxDriver(desiredCapabilities)已弃用。
另 一种方法是 选择 :
FirefoxOptions foptions = new FirefoxOptions(capabilities);WebDriver driver=new FirefoxDriver(foptions);
更新 :[ 按顺序 ]
FirefoxOptions foptions = new FirefoxOptions();FirefoxProfile firefoxProfile = new FirefoxProfile(pathToProfile);foptions.setProfile(firefoxProfile);foptions.setCapability("marionette", false);foptions.setBinary("C:\Program Files\Mozilla Firefox 52\firefox.exe"); WebDriver driver = new FirefoxDriver(foptions);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)