Selenium2中设定FirefoxDriver的启动路径和Profile
# 火狐启动路径
如果安装了多个Firefox版本,若在创建FirefoxDriver时不指定路径,则启动安装在默认路径下的Firefox浏览器,C:\Program Files\Mozilla Firefox\firefox.exe
FirefoxProfile profile = new FirefoxProfile(new File("D:\\daniel\\FirefoxProfile\"));WebDriver webDriver = new FirefoxDriver(profile);