module:WPAdminWCSettingsProductsDownloadable

module:WPAdminWCSettingsProductsDownloadable

The Products: Downloadable Products settings screen

Constructor

new module:WPAdminWCSettingsProductsDownloadable(driver, args)

Parameters:
Name Type Description
driver WebDriver

Instance of WebDriver.

args object

Configuration arguments.

Source:

Extends

  • WPAdminWCSettings

Methods

checkDownloadsRequireLogin() → {Promise}

Check the "Downloads require login" checkbox.

Source:
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.

Source:
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.

Source:
Returns:

Promise that evaluates to true if file download method selected successfully, false otherwise.

Type
Promise

uncheckDownloadsRequireLogin() → {Promise}

Uncheck the "Downloads require login" checkbox.

Source:
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.

Source:
Returns:

Promise that evaluates to true if box is/gets unhecked successfully, false otherwise.

Type
Promise