Constructor
new module:WPAdminWCSettingsProductsDownloadable(driver, args)
Parameters:
Name | Type | Description |
---|---|---|
driver |
WebDriver | Instance of WebDriver. |
args |
object | Configuration arguments. |
Extends
- WPAdminWCSettings
Methods
checkDownloadsRequireLogin() → {Promise}
Check the "Downloads require login" checkbox.
Returns:
Promise that evaluates to true
if box is/gets checked successfully, false
otherwise.
- Type
- Promise
checkGrantAccessAfterPayment() → {Promise}
Check the "Grant access to downloadable products after payment" checkbox.
Returns:
Promise that evaluates to true
if box is/gets checked successfully, false
otherwise.
- Type
- Promise
selectFileDownloadMethod(option) → {Promise}
Select the file download method.
Parameters:
Name | Type | Description |
---|---|---|
option |
string | File download text. |
Returns:
Promise that evaluates to true
if file download method selected successfully, false
otherwise.
- Type
- Promise
uncheckDownloadsRequireLogin() → {Promise}
Uncheck the "Downloads require login" checkbox.
Returns:
Promise that evaluates to true
if box is/gets unchecked successfully, false
otherwise.
- Type
- Promise
uncheckGrantAccessAfterPayment() → {Promise}
Uncheck the "Grant access to downloadable products after payment" checkbox.
Returns:
Promise that evaluates to true
if box is/gets unhecked successfully, false
otherwise.
- Type
- Promise