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); }
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); }
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); } }
public void AddComment() { // Add message FormHelper.EnterText(CommentField, "Message value"); NavigationHelper.ClickElement(ConfirmAddressButton); }
public void ProceedToCheckout() { NavigationHelper.SwitchToDefaultFrame(); NavigationHelper.ClickElement(ProceedToCheckoutButton); }
public void ConfirmOrder() { // Click confirm order button NavigationHelper.ClickElement(ConfirmOrderButton); }
public void PayByBankWire() { // Click to pay by wire NavigationHelper.ClickElement(BankWireLink); }
public void AgreeToTerms() { // Agree to terms FormHelper.ClickCheckbox(AgreeToTermsCheckBox); NavigationHelper.ClickElement(ShippingProceedButton); }
public void ClickSignOut() { NavigationHelper.ClickElement(SignOutLink); }
public void ProceedToCheckout() { NavigationHelper.ClickElement(ProceedToCheckoutButton); }
public void AddToCart() { NavigationHelper.ClickElement(AddToCartButton); }
public void SelectColourBlue() { NavigationHelper.ClickElement(ColourBlueElement); }