2012-09-13 62 views

回答

2

您可以使用類似與自定義配置文件啓動它:

profile = FirefoxProfile("path.to.profile") 
driver = webdriver.Firefox(profile) 
0

沒有必要設置配置文件,它可以自動創建,你只需要路徑插件,例如:

 string firebugPath = "C:\\Users\\Administrator\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\x7nutq33.default\\extensions\\[email protected]"; 
     FirefoxProfile profile = new FirefoxProfile();  
     profile.AddExtension(firebugPath); 
     Driver = new FirefoxDriver(profile); 
相關問題