Example #1
0
        public void SetUp()
        {
            platform = (Platform)Enum.Parse(typeof(Platform), System.Configuration.ConfigurationManager.AppSettings["Platform"]);
            targetHost = System.Configuration.ConfigurationManager.AppSettings["TargetHost"];

            switch (platform)
            {
                case Platform.IE:

                    browser = new IE();
                    browser.ShowWindow(NativeMethods.WindowShowStyle.Maximize);
                    break;
                case Platform.FF:
                    browser = BrowserFactory.Create(BrowserType.FireFox);
                    browser.ShowWindow(NativeMethods.WindowShowStyle.Maximize);
                    break;

            }
            browser.GoTo(targetHost);
        }