示例#1
0
        public void checkout_filldifferentInfor(string firstname, string lastname, string zip)
        {
            screenshot screens = new screenshot();


            FirstNameT.SendKeys(firstname);
            LastNameT.SendKeys(lastname);
            PostCodeT.SendKeys(zip);
        }
示例#2
0
 private void LastNameT_Validating(object sender, CancelEventArgs e)
 {
     if (!Regex.Match(LastNameT.Text, "^[A-Z][a-zA-Z]*$").Success)
     {
         // first name was incorrect
         MessageBox.Show("Please Enter Valid Last Name. it must start with Capital Letter");
         LastNameT.SelectAll();
         e.Cancel = true;
     }
 }
示例#3
0
        public void Checkout_Cancel()
        {
            screenshot screens = new screenshot();

            CheckoutButton.Click();
            FirstNameT.SendKeys("sggi");
            LastNameT.SendKeys("r");
            PostCodeT.SendKeys("12345");
            screens.Takescreenshot6("filename");

            CancelButton.Click();
            screens.Takescreenshot6("filename");
        }
示例#4
0
        public void Checkout_Continue()
        {
            screenshot screens = new screenshot();

            CheckoutButton.Click();

            FirstNameT.SendKeys("sggi");

            LastNameT.SendKeys("r");

            PostCodeT.SendKeys("12345");
            screens.Takescreenshot5("filename");
            screens.Takescreenshot9("filename");

            ContiuneButton.Click();
            screens.Takescreenshot5("filename");
            screens.Takescreenshot9("filename");
        }