Ejemplo n.º 1
0
        public static void LogOff()
        {
            const string LOGOFF_BUTTON_TEXT = "Deconectare";
            var          logOffButton       = SeleniumGetMethods.GetWebElementById("LoginView1_HeadLoginStatus");

            if (!logOffButton.Text.Equals(LOGOFF_BUTTON_TEXT))
            {
                throw new Exception("User is not loged");
            }
            else
            {
                logOffButton.Click();
            }
        }
Ejemplo n.º 2
0
        public void TestUserStory4()
        {
            try
            {
                const string INPUT_FILE           = "UserProfile.xml";
                const string USER_CREDENTIAL_FILE = "User.xml";
                User         user        = XML.DeserializeObject <User>(FileUtils.CreateInputPath(USER_CREDENTIAL_FILE));
                UserProfile  userProfile = XML.DeserializeObject <UserProfile>(FileUtils.CreateInputPath(INPUT_FILE));

                PropertiesCollection.OpenURL(Constants.START_URL);
                Panel.Log_Click();
                Authentication.Login(user);
                UserPanel.ProfilulMeu_Click();
                var editButton = SeleniumGetMethods.GetWebElementById("MainContent_EditProfileButton");
                editButton.Click();
                // SeleniumGetMethods.GetWebElementInnerHTML("Editeaza").Click();
                Authentication.EditeProfile(userProfile);
            }
            catch (Exception e)
            {
                Logger.LogException("", e);
                Assert.Fail(e.Message);
            }
        }
Ejemplo n.º 3
0
 internal static void Log_Click()
 {
     SeleniumGetMethods.GetWebElementById("LoginView1_HeadLoginStatus").Click();
 }