Ejemplo n.º 1
0
 public static void CheckPageText(IWebDriver driver)
 {
     GenericFunctions.CheckWindowTitle("InTouch Clinical", driver);
     GenericFunctions.CheckTextIsOnPage("InTouch Clinical", driver);
     GenericFunctions.CheckTextIsOnPage("Welcome " + GenericFunctions.goAndGet("USERNAME"), driver);
     GenericFunctions.CheckTextIsOnPage("Study: " + GenericFunctions.goAndGet("STUDYID"), driver);
     GenericFunctions.CheckTextIsOnPage("Log Off", driver);
     GenericFunctions.CheckTextIsOnPage("Subject Administration", driver);
     GenericFunctions.CheckTextIsOnPage("Reporting", driver);
     GenericFunctions.CheckTextIsOnPage("Subjects", driver);
 }
Ejemplo n.º 2
0
 public static void ITC_Invalid(string IDORPASS, IWebDriver driver)
 {
     driver.Navigate().GoToUrl(GenericFunctions.goAndGet("UIUXURL"));
     GenericFunctions.CheckWindowTitle("Exco Intouch Online Services", driver);
     GenericFunctions.CheckTextIsOnPage("Online Services", driver);
     GenericFunctions.CheckTextIsOnPage("Enter your username and password:"******"Username", driver);
     GenericFunctions.CheckTextIsOnPage("Password", driver);
     GenericFunctions.Type((IDORPASS == "Username" ? "INVALIDUSERNAME" : GenericFunctions.goAndGet("USERNAME")), "UserName", driver);
     GenericFunctions.Type((IDORPASS == "Password" ? "INVALIDPASSWORD" : GenericFunctions.goAndGet("PASSWORD")), "Password", driver);
     GenericFunctions.ClickOnButton("logonBtn", driver);
     GenericFunctions.CheckTextIsOnPage("Login was unsuccessful. Please correct the errors and try again.", driver);
     GenericFunctions.CheckTextIsOnPage("Your login attempt was not successful. Please try again", driver);
 }
Ejemplo n.º 3
0
        public static void ITC_Login(IWebDriver driver)
        {
            string username  = GenericFunctions.goAndGet("USERNAME");
            string password  = GenericFunctions.goAndGet("PASSWORD");
            string studyName = GenericFunctions.goAndGet("STUDYID");

            // Login
            driver.Navigate().GoToUrl(GenericFunctions.goAndGet("UIUXURL"));
            GenericFunctions.CheckWindowTitle("Exco Intouch Online Services", driver);
            GenericFunctions.CheckTextIsOnPage("Online Services", driver);
            GenericFunctions.CheckTextIsOnPage("Enter your username and password:"******"Username", driver);
            GenericFunctions.CheckTextIsOnPage("Password", driver);
            GenericFunctions.CheckTextIsOnPage("Knowledge Centre", driver);
            GenericFunctions.Type(username, "UserName", driver);
            GenericFunctions.Type(password, "Password", driver);
            Functions.Reporting.ReportScreenshot("Log", driver);
            GenericFunctions.ClickOnButton("logonBtn", driver);


            CheckPageText(driver);
        }