public void checkout_filldifferentInfor(string firstname, string lastname, string zip) { screenshot screens = new screenshot(); FirstNameT.SendKeys(firstname); LastNameT.SendKeys(lastname); PostCodeT.SendKeys(zip); }
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; } }
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"); }
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"); }