示例#1
0
        /// <summary>
        /// Launches the Selenium RC and browser specified in the Environments.cs file
        /// </summary>
        public ISelenium LaunchBrowser(ISelenium browser)
        {
            browser = new DefaultSelenium(this.environment.host, this.environment.port, this.environment.browser, this.environment.baseURL);
            browser.Start();
            browser.SetTimeout(this.environment.timeout);
            browser.WindowMaximize();
            browser.WindowFocus();

            return browser;
        }