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

public void startFirfoxAndConfirmProfile() {
            FirefoxProfile f = new FirefoxProfile();
            f.AddExtension(@"your xpi path");
            IWebDriver d = new FirefoxDriver(f);
        }

你可能感兴趣的:(webdriver)