Пример #1
0
        public void TestCommons_Setup(string automationConfigs)
        {
            AutomatedLogger.Log("Entering the Common Setup method");

            //Read the Test Configs (including the ones in app.config)
            TestConfigs.Init(automationConfigs);
            ApplicationConfigs.ReadConfigs(TestConfigs.PathOfCurrentContext);

            //Start a new Browser : Initialize
            ActiveBrowser = new AutomatedBrowser(TestConfigs.Browser, isGridEnabled: false);

            //Open Website in the browser started by Selenium
            if (!string.IsNullOrEmpty(TestConfigs.Url))
            {
                AutomatedActions.NavigationActions.NavigateToUrl(TestConfigs.Url);

                // Login
                //WindowsLogin();
                AutomatedActions.WindowActions.Maximize();
            }



            AutomatedLogger.Log("Exiting Common Setup method");
        }//end method Common Setup