public void GivenIEnterTheUsernameAndPassword()
 {
     loginPage.EnterUsernamePassword(ConfigurationManager.AppSettings["USER"].ToString(),
                                     ConfigurationManager.AppSettings["PASSWORD"].ToString());
     CommonMethods.CaptureScreenshot(Driver);
     CommonMethods.CaptureScreenshot(Driver);
 }
        public void ThenIShouldSeeTheDashboard()
        {
            Assert.AreEqual(true, Driver.PageSource.Contains("Dashboard"));
            // Console.WriteLine("PASS");

            CommonMethods.CaptureScreenshot(Driver);
            CommonMethods.cleanup(Driver);
        }
Esempio n. 3
0
        public void ThenIShouldSeeTheDashboard()
        {
            System.Threading.Thread.Sleep(50000);

            Assert.AreEqual(true, Driver.PageSource.Contains("Dashboard"));
            // Console.WriteLine("PASS");

            CommonMethods.CaptureScreenshot();
            CommonMethods.cleanup();
        }
 public void GivenIHaveNavigatedToTheLoginScreen()
 {
     if (Driver.PageSource.Contains("Dashboard"))
     {
         Console.WriteLine("I am already logged in");
         return;
     }
     else
     {
         CommonMethods.GetURL(Driver);
         CommonMethods.CaptureScreenshot(Driver);
     }
 }
 public void WhenIClickLoginButton()
 {
     loginPage.ClickLogin();
     CommonMethods.CaptureScreenshot(Driver);
 }