Constructor
new module:CheckoutPage(driver, args)
Parameters:
Name | Type | Description |
---|---|---|
driver |
WebDriver | Instance of WebDriver. |
args |
object | Configuration arguments. |
- Source:
Extends
- Page
Methods
checkShipToDifferentAddress() → {Promise}
Check the "Ship to a different address?" box.
- Source:
Returns:
Promise that evaluates to true
if box is/gets checked, false
otherwise.
- Type
- Promise
placeOrder() → {Promise}
Click the "Place order" button.
- Source:
Returns:
Promise that evaluates to true
if button is clicked successfully, false
otherwise.
- Type
- Promise
selectPaymentMethod(name) → {Promise}
Select a payment method.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Text name of the payment method. |
- Source:
Returns:
Promise that evaluates to true
if payment method is selected successfully, false
otherwise.
- Type
- Promise
setOrderNotes(notes) → {Promise}
Set order notes for the order.
Parameters:
Name | Type | Description |
---|---|---|
notes |
string | Text to put in the order notes box. |
- Source:
Returns:
Promise that evaluates to true
if order notes are entered successfully, false
otherwise.
- Type
- Promise
uncheckShipToDifferentAddress() → {Promise}
Uncheck the "Ship to a different address?" box.
- Source:
Returns:
Promise that evaluates to true
if box is/gets unchecked, false
otherwise.
- Type
- Promise