public void RegisterIntoApplication(string firstName, string lastName, string phoneNumber, string email, string password, string repeatPassword) { RegisterFirstNameTextField.SendKeys(firstName); RegisterLastNameTextField.SendKeys(lastName); RegisterPhoneNumberTextField.SendKeys(phoneNumber); RegisterEmailTextField.SendKeys(email); RegisterPasswordTextField.SendKeys(password); RegisterRepeatPasswordTextField.SendKeys(repeatPassword); ScrollHelper.ScrollToView(_driver, RegisterButton); RegisterButton.Click(); }
public void CreateWishlist(string wishlistName, string wishlistComment, string extraInfo, string customerName, string customerEmail) { WishlistNameTextField.SendKeys(wishlistName); WishlistCommentTextField.SendKeys(wishlistComment); WishlsitExtraInfoTextField.SendKeys(extraInfo); ScrollHelper.ScrollToView(_driver, WishlistCustomerNameTextField); WishlistCustomerNameTextField.SendKeys(customerName); WishlistCustomerEmailTextField.SendKeys(customerEmail); WishlistConfidentialityCheckBox.Click(); // Wishlist save disabled because is live app //WishListSaveButton.Click(); }
public void ClickOnSpecifiedProductByIndex(int index) { if (SearchedProductsList.Any() == false) { return; } if (index >= SearchedProductsList.Count()) { return; } ScrollHelper.ScrollToView(_driver, SearchedProductsList.ElementAt(index)); SearchedProductsList.ElementAt(index).Click(); }
public void ClickOnAddToShoppingCartButton() { ScrollHelper.ScrollToView(_driver, AddToCartButton); AddToCartButton.Click(); }
public void ClickOnSpecifiedFilterCategoryByText(string filterCategoryName) { ScrollHelper.ScrollToView(_driver, FilterCategoryButton(filterCategoryName)); FilterCategoryButton(filterCategoryName).Click(); }
public void SearchForWishList(string wishListName) { WishListSearchBar.SendKeys(wishListName); ScrollHelper.ScrollToView(_driver, WishListSearchButton); WishListSearchButton.Click(); }