Esempio n. 1
0
 public void EnterPersonalInfo()
 {
     // Enters personal info and proceed
     FormHelper.ClickRadio(TitleRadioMr);
     FormHelper.EnterText(FirstNameField, "FirstNameValue");
     FormHelper.EnterText(LastNameField, "LastNameValue");
     FormHelper.EnterText(PasswordField, "AutomationPassword1234!");
     FormHelper.SelectValue(DaySelect, "22");
     FormHelper.SelectValue(MonthSelect, "12");
     FormHelper.SelectValue(YearSelect, "1980");
     FormHelper.ClickCheckbox(NewsletterCheckBox);
     FormHelper.ClickCheckbox(SpecialOffersCheckBox);
     FormHelper.EnterText(CompanyField, "CompanyFieldValue");
     FormHelper.EnterText(Address1Field, "Address Line 1 Value");
     FormHelper.EnterText(Address2Field, "Address Line 2 Value");
     FormHelper.EnterText(CityField, "CityValue");
     FormHelper.SelectValue(StateSelect, "32");
     FormHelper.EnterText(ZipPostcodeField, "10304");
     FormHelper.SelectValue(CountrySelect, "21");
     FormHelper.EnterText(AdditionalInfoTextArea, "Additional information value"); // could add additional textarea helper for additional logging info
     FormHelper.EnterText(HomePhoneField, "1111111111");
     FormHelper.EnterText(MobilePhoneField, "222222222");
     FormHelper.EnterText(AddressAlias, "Address alias value");
     NavigationHelper.ClickElement(RegisterButton);
 }
Esempio n. 2
0
        public void EnterEmailAddress()
        {
            // Generate valid unique email
            var emailAddress = GeneralHelper.GenerateUniqueEmail();

            // Enter email and proceed
            Console.WriteLine(emailAddress);
            FormHelper.EnterText(EmailField, emailAddress);
            NavigationHelper.ClickElement(CreateAccountButton);
        }
Esempio n. 3
0
        public void ClickQuickView()
        {
            //var isMobile = GeneralHelper.CheckElementPresent(Product1QuickViewMobile);
            var isMobileOrTablet = GeneralHelper.ViewportWidthLessThan(1200);

            if (isMobileOrTablet)
            {
                NavigationHelper.ClickElement(Product1QuickViewMobile);
            }
            else
            {
                NavigationHelper.MouseOverElement(Product1Container);
                NavigationHelper.ClickElement(Product1Container);
            }
        }
Esempio n. 4
0
 public void AddComment()
 {
     // Add message
     FormHelper.EnterText(CommentField, "Message value");
     NavigationHelper.ClickElement(ConfirmAddressButton);
 }
Esempio n. 5
0
 public void ProceedToCheckout()
 {
     NavigationHelper.SwitchToDefaultFrame();
     NavigationHelper.ClickElement(ProceedToCheckoutButton);
 }
Esempio n. 6
0
 public void ConfirmOrder()
 {
     // Click confirm order button
     NavigationHelper.ClickElement(ConfirmOrderButton);
 }
Esempio n. 7
0
 public void PayByBankWire()
 {
     // Click to pay by wire
     NavigationHelper.ClickElement(BankWireLink);
 }
Esempio n. 8
0
 public void AgreeToTerms()
 {
     // Agree to terms
     FormHelper.ClickCheckbox(AgreeToTermsCheckBox);
     NavigationHelper.ClickElement(ShippingProceedButton);
 }
Esempio n. 9
0
 public void ClickSignOut()
 {
     NavigationHelper.ClickElement(SignOutLink);
 }
Esempio n. 10
0
 public void ProceedToCheckout()
 {
     NavigationHelper.ClickElement(ProceedToCheckoutButton);
 }
Esempio n. 11
0
 public void AddToCart()
 {
     NavigationHelper.ClickElement(AddToCartButton);
 }
Esempio n. 12
0
 public void SelectColourBlue()
 {
     NavigationHelper.ClickElement(ColourBlueElement);
 }