Beispiel #1
0
        public void PasswordSet()
        {
            SolutionBrowser._browser.Sync();

            ReporterWrapper.ReporterContext("Set Password credentials", () =>
            {
                lp.PasswordEditField.SetValue(user.Pwd);
                SolutionBrowser._browser.Sync();
                VerifyWrapper.IsMatch(lp.PasswordEditField.Value, user.Pwd, "Set Password", "Check the PasswordEditField to make its value matches the one extracted from the Excel File.", SolutionBrowser.GetSnapshot());
            });
        }
Beispiel #2
0
        public void UsernameSet()
        {
            SolutionBrowser._browser.Sync();

            ReporterWrapper.ReporterContext("Set Username credentials", () =>
            {
                lp.UsernameEditField.SetValue(user.Email);
                SolutionBrowser._browser.Sync();
                VerifyWrapper.IsMatch(lp.UsernameEditField.Value, user.Email, "Set Username", "Check the UsernameEditField to make sure its value is the username extracted from the Excel file", SolutionBrowser.GetSnapshot());
            });
        }
Beispiel #3
0
        public void LoginLinkClick()
        {
            SolutionBrowser._browser.Sync();

            ReporterWrapper.ReporterContext("Click on login link", () =>
            {
                lp.LoginLink.Click();
                SolutionBrowser._browser.Sync();

                VerifyWrapper.IsMatch(SolutionBrowser._browser.URL, "login", "Navigate to login page", "Click on link to navigate to the login page", SolutionBrowser.GetSnapshot());
            });
        }
Beispiel #4
0
        public void CheckLogIn()
        {
            SolutionBrowser._browser.Sync();
            //ILink userWelcome = lp.CheckLogIn(FIRSTNAME, LASTNAME);

            var regex = "^Bonjour\\s" + user.FirstName + "\\s" + LASTNAME;

            VerifyWrapper.IsMatch(lp.LoggedInLink.InnerText, regex, "Check log in status", "Check if we were able to log in with the Excel file credentials.", SolutionBrowser.GetSnapshot());

            //if (userWelcome != null)
            //{
            //    string welcome = userWelcome.InnerText;
            //    var regex = "^Bonjour\\s" + user.FirstName + "\\s" + LASTNAME;

            //    var match = Regex.Match(welcome, regex, RegexOptions.IgnoreCase);

            //    if (!match.Success)
            //        Assert.Fail("The LogIn was not successful.");
            //}
            //else
            //    Assert.Fail("The LogIn was not successful.");
        }