Represents the connection to the WebDriver Firefox extension.
Inheritance: IExtensionConnection
コード例 #1
0
ファイル: FirefoxDriver.cs プロジェクト: Bug2014/selenium
        private static ExtensionConnection CreateExtensionConnection(FirefoxBinary binary, FirefoxProfile profile, TimeSpan commandTimeout)
        {
            FirefoxProfile profileToUse = profile;

            string suggestedProfile = Environment.GetEnvironmentVariable("webdriver.firefox.profile");
            if (profileToUse == null && suggestedProfile != null)
            {
                profileToUse = new FirefoxProfileManager().GetProfile(suggestedProfile);
            }
            else if (profileToUse == null)
            {
                profileToUse = new FirefoxProfile();
            }

            ExtensionConnection extension = new ExtensionConnection(binary, profileToUse, "localhost", commandTimeout);
            return extension;
        }