Exemple #1
0
 public void Login(string userName, string password)
 {
     LogInLink = Driver.FindElement(By.LinkText("Log in"));
     LogInLink.Click();
     UserPasswordTextBox = Driver.FindElement(By.Id("Email"));
     UserPasswordTextBox.SendKeys(userName);
     UserPasswordTextBox = Driver.FindElement(By.Id("Password"));
     UserPasswordTextBox.SendKeys(password);
 }
Exemple #2
0
        private void EditButton_Click(object sender, RoutedEventArgs e)
        {
            Users user = new Users();

            using (SqlConnection myConnection = new SqlConnection("datasource=localhost;port=3306;username=root;password"))
            {
                string     oString = "update users set name='" + UserNameTextBox.Text() + "',password='******'email='" + UserEmailTextBox.Text();;
                SqlCommand oCmd    = new SqlCommand(oString, myConnection);
                myConnection.Open();
            }
        }