コード例 #1
0
 public void iOSMLogin()
 {
     EnterUsername.SendKeys(ConfigurationManager.AppSettings["MobileUsername"]);
     EnterPassword.SendKeys(ConfigurationManager.AppSettings["MobilePassword"]);
     ClickLogin.Click();
     System.Threading.Thread.Sleep(20000);
 }
コード例 #2
0
 public void ExistingUser()
 {
     SignInButton.Click();
     Thread.Sleep(1000);
     EnterEmail.SendKeys("*****@*****.**");
     EnterPassword.SendKeys("123qwe");
     Login.Submit();
 }
コード例 #3
0
 public SignInPage StepEnterPassword(string password)
 {
     Thread.Sleep(3000);
     EnterPassword.Click();
     EnterPassword.Clear();
     EnterPassword.SendKeys(password);
     ButtonSignIn.Click();
     Thread.Sleep(5000);
     return(this);
 }
コード例 #4
0
 public bool AskManagerPassword()
 {
     var ep = new EnterPassword("MANAGER");
     ep.ShowDialog();
     if (ep.Passed)
     {
         LastLoginedManager = ep.LogginedPerson;
         return true;
     }
     return false;
 }
コード例 #5
0
    void Update()
    {
        GameObject    ColoursConsole = GameObject.Find("ColoursConsole");
        EnterPassword enterPassword  = ColoursConsole.GetComponent <EnterPassword>();

        if (enterPassword.doorOpened == true && animPlayed == false)
        {
            animPlayed = true;
            anim.Play("door_2_open");
        }
        else if (animPlayed == true)
        {
            anim.Play("door_2_opened");
        }
    }
コード例 #6
0
 public void Login_Checkout()
 {
     EnterEmail.SendKeys("*****@*****.**");
     EnterPassword.SendKeys("123qwe");
     Login.Submit();
 }
コード例 #7
0
 public void Login(string Login, string Password)
 {
     EnterLogin.SendKeys(Login);
     EnterPassword.SendKeys(Password);
     EnterInput.Click();
 }
コード例 #8
0
 public void Login(String username, String password)
 {
     EnterEmail.SendKeys(username);
     EnterPassword.SendKeys(password);
     LoginBtn.Click();
 }
コード例 #9
0
        private void RegisterBtn_Click_1(object sender, RoutedEventArgs e)
        {
            Rooms.LoginRegister.Register register = new LoginRegister.Register();
            string username        = EnterUsername.Text;
            string password        = EnterPassword.Password.ToString();
            string confirmpassword = ConfirmPassword.Password.ToString();
            string firstname       = EnterName.Text;
            string lastname        = EnterSurname.Text;

            bool checkInstructor;

            if (InstructorRadioBtn.IsChecked == true)
            {
                checkInstructor = true;
            }
            else
            {
                checkInstructor = false;
            }


            string email = EnterEmail.Text;

            utilizator.username  = username;
            utilizator.password  = password;
            utilizator.firstname = firstname;
            utilizator.lastname  = lastname;
            utilizator.email     = email;
            utilizator.Role      = InstructorRadioBtn.IsEnabled ? Rol_Utilizator.Membru : Rol_Utilizator.Administrator;

            try
            {
                utilizator newUser = register.Valideaza_Inregistrare(username, password, firstname, lastname, confirmpassword, checkInstructor, email);
                MessageBox.Show("Welcome to Rooms 404. Enjoy!");

                AdminFormularService adminFormularService = new AdminFormularService();

                student = adminFormularService.GetStudent(utilizator.id);

                if (newUser.Role.ToString().Equals("Membru"))
                {
                    StudentModule mainWindow = new StudentModule(utilizator, student);
                    mainWindow.Show();
                    this.Close();
                }
                else if (newUser.Role.ToString().Equals("Administrator"))
                {
                    AdminModule adminModule = new AdminModule(utilizator);
                    adminModule.Show();
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                EnterUsername.Clear();
                EnterPassword.Clear();
                EnterName.Clear();
                EnterSurname.Clear();
                EnterEmail.Clear();

                MessageBox.Show(ex.Message);
            }
        }
コード例 #10
0
 public void EnterPass(String pass)
 {
     EnterPassword.SendKeys(pass);
 }