Example #1
0
        public void InitializeTest()
        {
            LogGenerator.LogInfo(System.Reflection.MethodBase.GetCurrentMethod().Name);

            // instantiate method according to browser type input
            SetDriver(browserType);

            // set wait time to load application completely.
            Driver().Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(60);

            // set wait time for loading DOM to get element irrespective of application loaded completely or not
            // Driver().Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);

            ReportTestManager.CreateTest(TestContext.CurrentContext.Test.Name);


            // lounch application
            LounchApplication();
        }
Example #2
0
 public void Initialize()
 {
     ReportTestManager.CreateTest(TestContext.CurrentContext.Test.Name);
     InitializeSettings();
 }