public void WhenUserEnteredTheLoginDetailsForUnAuthenticatedUser(string username, string Password)
 {
     try
     {
         var login = new PageCSFile.LoginPage();
         PageFactory.InitElements(BrowserFactory.Driver, login);
         login.Login(username, Password);
         Console.WriteLine("Entered the login1 : UNAuthroized User details");
     }
     catch (Exception e)
     {
         if (CustomisedException.getErrorMessage() != null)
         {
             PropertiesCollection.takeSnapShot("LoginpageAuthroizedRepeated User");
             Assert.Fail(CustomisedException.GetFieldValue() + " :" + CustomisedException.getErrorMessage());
         }
         else
         {
             PropertiesCollection.takeSnapShot("LoginpageAuthroizedRepeated User");
             Assert.Fail(e.ToString());
         }
     }
 }
        public void GivenUserLaunchedTheHarvesterUIURL()
        {
            try
            {
                BrowserFactory.InitBrowser(ConfigurationManager.AppSettings["Browser"]);
                Console.WriteLine("Browser has been launched");
                BrowserFactory.LoadApplication(ConfigurationManager.AppSettings["HarvesterUI_Url"]);
                Console.WriteLine("URL has been launched");
            }

            catch (Exception e)
            {
                if (CustomisedException.getErrorMessage() != null)
                {
                    PropertiesCollection.takeSnapShot("LoginpageLaunchURL");
                    Assert.Fail(CustomisedException.GetFieldValue() + " :" + CustomisedException.getErrorMessage());
                }
                else
                {
                    PropertiesCollection.takeSnapShot("LoginpageLaunchURL");
                    Assert.Fail(e.ToString());
                }
            }
        }