-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Commands
Manuel edited this page May 23, 2024
·
5 revisions
Fills the email field in the create account form.
Parameters:
- userCredentials -User credentials object containing personal information including email.
- userCredentials.email - The user's email address.
Fills the personal information fields in the create account form.
Parameters:
- userCredentials -User credentials object containing personal information.
- userCredentials.firstName - The user's first name.
- userCredentials.lastName - The user's last name.
- userCredentials.password - The user's password.
- userCredentials.days - The day of birth.
- userCredentials.months - The month of birth.
- userCredentials.years - The year of birth.
Signs up a user by filling in the create account form and personal information.
Parameters:
- userCredentials -User credentials object containing email, personal information, etc.
Logs in a user by filling in the login form.
Parameters:
- userCredentials -User credentials object containing email and password.
- userCredentials.email -The user's email address.
- userCredentials.password -The user's password.
- [testInvalidLogin=false] -Flag to indicate whether to test for an invalid login.
Searches for a product using the search box.
Parameters:
- productQuery -The query string for the product search.
Clicks on a navigation section.
Parameters:
- navSection -The navigation section to click (e.g., "women", "dresses", "t-shirts", "blog").
Adds a product to the cart.
Parameters:
- productData -Data about the product to add to the cart.
- productData.productNum - The product number to add (1 = first product, 2 = second product, and so on).
- productData.color=null - The color of the product. Defaults to null if not provided.
- productData.size=null - The size of the product. Defaults to null if not provided.
- productData.quantity=null - The quantity of the product. Defaults to null if not provided.
Removes a product from the cart.
Parameters:
- productNum -The product number to remove (e.g., "1", "2", etc.).
Retrieves an element and asserts its text content.
Parameters:
- element -Selector of the element to retrieve.
- ...texts -Expected text content of the element.