Exemplo n.º 1
0
 public static void GenerateNewRequest(int Profile)
 {
     if (Profile == 2)
     {
         Thread.Sleep(3000);
         Driver.driver.Navigate().GoToUrl("http://192.168.99.100:5000/Home/ServiceDetail?id=5f90766151f40e000141e9b3");
     }
     else
     {
         SignIn.OpenForm();
         SignIn.FillCredentials(Profile);
         ProfilePages.CheckProfilePage();
         Driver.driver.Navigate().GoToUrl("http://192.168.99.100:5000/Home/ServiceDetail?id=5f678a0708945f000120afb3");
     }
     Thread.Sleep(2000);
     RequestButton.Click();
     //Thread.Sleep(1000);
     RequestAcceptButton.Click();
     Thread.Sleep(2000);
     if (Profile != 2)
     {
         LogOutButton.Click();
     }
     else
     {
         Driver.driver.Navigate().GoToUrl("http://192.168.99.100:5000/Account/Profile");
     }
     Thread.Sleep(500);
 }
Exemplo n.º 2
0
        public static void CheckNewPassword()
        {
            //Logs out to try the new password
            Thread.Sleep(3000);
            ProfilePages.LogOut();
            SignIn.OpenForm();
            Thread.Sleep(1000);
            SignIn.FillCredentials(4);

            //Checks that the user is able to logIn and changes the password back again
            ProfilePages.CheckProfilePage();
            ProfilePages.OpenChangePassword();
            FillForm(2);
        }
Exemplo n.º 3
0
 public static void AcceptRequestWithOtherUser()
 {
     ProfilePages.LogOut();
     SignIn.OpenForm();
     SignIn.FillCredentials(5);
     ProfilePages.CheckProfilePage();
     NavigateToReceivedRequest();
     AcceptRequest();
     Thread.Sleep(3000);
     LogOutButton.Click();
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ProfilePages.CheckProfilePage();
     NavigateToSentRequest();
 }