webdriver启动时加载扩展易于调试用.比如firebug等

public void startFirfoxAndConfirmProfile() {
            FirefoxProfile f = new FirefoxProfile();
            f.AddExtension(@"your xpi path");
            IWebDriver d = new FirefoxDriver(f);
        }
原文地址:https://www.cnblogs.com/bugua/p/2304250.html